3 types derived from MemberBinding
System.Linq.Expressions (3)
System\Linq\Expressions\MemberAssignment.cs (1)
13
public sealed class MemberAssignment :
MemberBinding
System\Linq\Expressions\MemberListBinding.cs (1)
17
public sealed class MemberListBinding :
MemberBinding
System\Linq\Expressions\MemberMemberBinding.cs (1)
20
public sealed class MemberMemberBinding :
MemberBinding
87 references to MemberBinding
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1602
var bindings = new List<
MemberBinding
>(properties.Length);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
ExpressionTrees\Sources\ExprLambdaUtils.vb (2)
100
Protected Overrides Function VisitMemberBinding(node As
MemberBinding
) As
MemberBinding
netstandard (1)
netstandard.cs (1)
1012
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.
MemberBinding
))]
System.Core (1)
System.Core.cs (1)
150
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.
MemberBinding
))]
System.Linq.Expressions (82)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
941
private void EmitBinding(
MemberBinding
binding, Type objectType)
1027
private void EmitMemberInit(ReadOnlyCollection<
MemberBinding
> bindings, bool keepOnStack, Type objectType)
System\Linq\Expressions\Compiler\StackSpiller.Bindings.cs (11)
15
protected readonly
MemberBinding
_binding;
19
internal BindingRewriter(
MemberBinding
binding, StackSpiller spiller)
27
internal abstract
MemberBinding
AsBinding();
30
internal static BindingRewriter Create(
MemberBinding
binding, StackSpiller spiller, Stack stack)
58
private readonly ReadOnlyCollection<
MemberBinding
> _bindings;
77
internal override
MemberBinding
AsBinding()
85
MemberBinding
[] newBindings = new
MemberBinding
[count];
90
return new MemberMemberBinding(_binding.Member, new TrueReadOnlyCollection<
MemberBinding
>(newBindings));
154
internal override
MemberBinding
AsBinding()
227
internal override
MemberBinding
AsBinding() =>
System\Linq\Expressions\Compiler\StackSpiller.cs (5)
711
ReadOnlyCollection<
MemberBinding
> bindings = node.Bindings;
718
MemberBinding
binding = bindings[i];
732
MemberBinding
[] newBindings = new
MemberBinding
[count];
737
expr = new MemberInitExpression((NewExpression)rewrittenNew, new TrueReadOnlyCollection<
MemberBinding
>(newBindings));
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
303
public ReadOnlyCollection<
MemberBinding
> Bindings => _node.Bindings;
System\Linq\Expressions\ExpressionStringBuilder.cs (2)
96
internal static string MemberBindingToString(
MemberBinding
node)
429
MemberBinding
b = node.Bindings[i];
System\Linq\Expressions\ExpressionVisitor.cs (3)
583
/// Visits the children of the <see cref="
MemberBinding
"/>.
588
protected virtual
MemberBinding
VisitMemberBinding(
MemberBinding
node) =>
System\Linq\Expressions\Interpreter\LightCompiler.cs (2)
2720
private void CompileMemberInit(ReadOnlyCollection<
MemberBinding
> bindings)
2722
foreach (
MemberBinding
binding in bindings)
System\Linq\Expressions\MemberBinding.cs (1)
33
/// Initializes an instance of <see cref="
MemberBinding
"/> class.
System\Linq\Expressions\MemberInitExpression.cs (14)
17
internal MemberInitExpression(NewExpression newExpression, ReadOnlyCollection<
MemberBinding
> bindings)
46
/// <returns>A <see cref="ReadOnlyCollection{T}"/> of <see cref="
MemberBinding
"/> objects which describe how to initialize the members.</returns>
47
public ReadOnlyCollection<
MemberBinding
> Bindings { get; }
70
Expression objExpression, ReadOnlyCollection<
MemberBinding
> bindings, bool keepOnStack)
102
internal static Expression ReduceMemberBinding(ParameterExpression objVar,
MemberBinding
binding)
122
public MemberInitExpression Update(NewExpression newExpression, IEnumerable<
MemberBinding
> bindings)
141
/// <param name="bindings">An array of <see cref="
MemberBinding
"/> objects to use to populate the <see cref="MemberInitExpression.Bindings"/> collection.</param>
144
/// <exception cref="ArgumentException">The <see cref="
MemberBinding
.Member"/> property of an element of <paramref name="bindings"/> does not represent a member of the type that <paramref name="newExpression"/>.Type represents.</exception>
145
public static MemberInitExpression MemberInit(NewExpression newExpression, params
MemberBinding
[] bindings)
147
return MemberInit(newExpression, (IEnumerable<
MemberBinding
>)bindings);
153
/// <param name="bindings">An <see cref="IEnumerable{T}"/> that contains <see cref="
MemberBinding
"/> objects to use to populate the <see cref="MemberInitExpression.Bindings"/> collection.</param>
156
/// <exception cref="ArgumentException">The <see cref="
MemberBinding
.Member"/> property of an element of <paramref name="bindings"/> does not represent a member of the type that <paramref name="newExpression"/>.Type represents.</exception>
157
public static MemberInitExpression MemberInit(NewExpression newExpression, IEnumerable<
MemberBinding
> bindings)
161
ReadOnlyCollection<
MemberBinding
> roBindings = bindings.ToReadOnly();
System\Linq\Expressions\MemberListBinding.cs (10)
60
/// <returns>A <see cref="MemberListBinding"/> that has the <see cref="
MemberBinding
.BindingType"/> property equal to <see cref="MemberBindingType.ListBinding"/> and the <see cref="
MemberBinding
.Member"/> and <see cref="MemberListBinding.Initializers"/> properties set to the specified values.</returns>
61
/// <param name="member">A <see cref="MemberInfo"/> that represents a field or property to set the <see cref="
MemberBinding
.Member"/> property equal to.</param>
73
/// <returns>A <see cref="MemberListBinding"/> that has the <see cref="
MemberBinding
.BindingType"/> property equal to <see cref="MemberBindingType.ListBinding"/> and the <see cref="
MemberBinding
.Member"/> and <see cref="MemberListBinding.Initializers"/> properties set to the specified values.</returns>
74
/// <param name="member">A <see cref="MemberInfo"/> that represents a field or property to set the <see cref="
MemberBinding
.Member"/> property equal to.</param>
92
/// <returns>A <see cref="MemberListBinding"/> that has the <see cref="
MemberBinding
.BindingType"/> property equal to <see cref="MemberBindingType.ListBinding"/>, the <see cref="
MemberBinding
.Member"/> property set to the <see cref="MemberInfo"/> that represents the property accessed in <paramref name="propertyAccessor"/>, and <see cref="MemberListBinding.Initializers"/> populated with the elements of <paramref name="initializers"/>.</returns>
106
/// <returns>A <see cref="MemberListBinding"/> that has the <see cref="
MemberBinding
.BindingType"/> property equal to <see cref="MemberBindingType.ListBinding"/>, the <see cref="
MemberBinding
.Member"/> property set to the <see cref="MemberInfo"/> that represents the property accessed in <paramref name="propertyAccessor"/>, and <see cref="MemberListBinding.Initializers"/> populated with the elements of <paramref name="initializers"/>.</returns>
System\Linq\Expressions\MemberMemberBinding.cs (31)
17
/// Use the <see cref="Expression.MemberBind(MemberInfo,
MemberBinding
[])"/> factory methods to create a <see cref="MemberMemberBinding"/>.
18
/// The value of the <see cref="
MemberBinding
.BindingType"/> property of a <see cref="MemberMemberBinding"/> object is <see cref="
MemberBinding
"/>.
22
internal MemberMemberBinding(MemberInfo member, ReadOnlyCollection<
MemberBinding
> bindings)
33
public ReadOnlyCollection<
MemberBinding
> Bindings { get; }
42
public MemberMemberBinding Update(IEnumerable<
MemberBinding
> bindings)
65
/// <param name="member">The <see cref="MemberInfo"/> to set the <see cref="
MemberBinding
.Member"/> property equal to.</param>
66
/// <param name="bindings">An array of <see cref="
MemberBinding
"/> objects to use to populate the <see cref="MemberMemberBinding.Bindings"/> collection.</param>
67
/// <returns>A <see cref="MemberMemberBinding"/> that has the <see cref="
MemberBinding
.BindingType"/> property equal to <see cref="
MemberBinding
"/> and the <see cref="
MemberBinding
.Member"/> and <see cref="MemberMemberBinding.Bindings"/> properties set to the specified values.</returns>
68
public static MemberMemberBinding MemberBind(MemberInfo member, params
MemberBinding
[] bindings)
70
return MemberBind(member, (IEnumerable<
MemberBinding
>)bindings);
76
/// <param name="member">The <see cref="MemberInfo"/> to set the <see cref="
MemberBinding
.Member"/> property equal to.</param>
77
/// <param name="bindings">An <see cref="IEnumerable{T}"/> that contains <see cref="
MemberBinding
"/> objects to use to populate the <see cref="MemberMemberBinding.Bindings"/> collection.</param>
78
/// <returns>A <see cref="MemberMemberBinding"/> that has the <see cref="
MemberBinding
.BindingType"/> property equal to <see cref="
MemberBinding
"/> and the <see cref="
MemberBinding
.Member"/> and <see cref="MemberMemberBinding.Bindings"/> properties set to the specified values.</returns>
79
public static MemberMemberBinding MemberBind(MemberInfo member, IEnumerable<
MemberBinding
> bindings)
83
ReadOnlyCollection<
MemberBinding
> roBindings = bindings.ToReadOnly();
94
/// <param name="bindings">An <see cref="IEnumerable{T}"/> that contains <see cref="
MemberBinding
"/> objects to use to populate the <see cref="MemberMemberBinding.Bindings"/> collection.</param>
96
/// A <see cref="MemberMemberBinding"/> that has the <see cref="
MemberBinding
.BindingType"/> property equal to <see cref="
MemberBinding
"/>,
101
public static MemberMemberBinding MemberBind(MethodInfo propertyAccessor, params
MemberBinding
[] bindings)
103
return MemberBind(propertyAccessor, (IEnumerable<
MemberBinding
>)bindings);
110
/// <param name="bindings">An <see cref="IEnumerable{T}"/> that contains <see cref="
MemberBinding
"/> objects to use to populate the <see cref="MemberMemberBinding.Bindings"/> collection.</param>
112
/// A <see cref="MemberMemberBinding"/> that has the <see cref="
MemberBinding
.BindingType"/> property equal to <see cref="
MemberBinding
"/>,
117
public static MemberMemberBinding MemberBind(MethodInfo propertyAccessor, IEnumerable<
MemberBinding
> bindings)
153
private static void ValidateMemberInitArgs(Type type, ReadOnlyCollection<
MemberBinding
> bindings)
157
MemberBinding
b = bindings[i];