3 types derived from MemberBinding
System.Linq.Expressions (3)
System\Linq\Expressions\MemberAssignment.cs (1)
13public sealed class MemberAssignment : MemberBinding
System\Linq\Expressions\MemberListBinding.cs (1)
17public sealed class MemberListBinding : MemberBinding
System\Linq\Expressions\MemberMemberBinding.cs (1)
20public sealed class MemberMemberBinding : MemberBinding
87 references to MemberBinding
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1602var bindings = new List<MemberBinding>(properties.Length);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
ExpressionTrees\Sources\ExprLambdaUtils.vb (2)
100Protected 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)
941private void EmitBinding(MemberBinding binding, Type objectType) 1027private void EmitMemberInit(ReadOnlyCollection<MemberBinding> bindings, bool keepOnStack, Type objectType)
System\Linq\Expressions\Compiler\StackSpiller.Bindings.cs (11)
15protected readonly MemberBinding _binding; 19internal BindingRewriter(MemberBinding binding, StackSpiller spiller) 27internal abstract MemberBinding AsBinding(); 30internal static BindingRewriter Create(MemberBinding binding, StackSpiller spiller, Stack stack) 58private readonly ReadOnlyCollection<MemberBinding> _bindings; 77internal override MemberBinding AsBinding() 85MemberBinding[] newBindings = new MemberBinding[count]; 90return new MemberMemberBinding(_binding.Member, new TrueReadOnlyCollection<MemberBinding>(newBindings)); 154internal override MemberBinding AsBinding() 227internal override MemberBinding AsBinding() =>
System\Linq\Expressions\Compiler\StackSpiller.cs (5)
711ReadOnlyCollection<MemberBinding> bindings = node.Bindings; 718MemberBinding binding = bindings[i]; 732MemberBinding[] newBindings = new MemberBinding[count]; 737expr = new MemberInitExpression((NewExpression)rewrittenNew, new TrueReadOnlyCollection<MemberBinding>(newBindings));
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
303public ReadOnlyCollection<MemberBinding> Bindings => _node.Bindings;
System\Linq\Expressions\ExpressionStringBuilder.cs (2)
96internal static string MemberBindingToString(MemberBinding node) 429MemberBinding b = node.Bindings[i];
System\Linq\Expressions\ExpressionVisitor.cs (3)
583/// Visits the children of the <see cref="MemberBinding"/>. 588protected virtual MemberBinding VisitMemberBinding(MemberBinding node) =>
System\Linq\Expressions\Interpreter\LightCompiler.cs (2)
2720private void CompileMemberInit(ReadOnlyCollection<MemberBinding> bindings) 2722foreach (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)
17internal 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> 47public ReadOnlyCollection<MemberBinding> Bindings { get; } 70Expression objExpression, ReadOnlyCollection<MemberBinding> bindings, bool keepOnStack) 102internal static Expression ReduceMemberBinding(ParameterExpression objVar, MemberBinding binding) 122public 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> 145public static MemberInitExpression MemberInit(NewExpression newExpression, params MemberBinding[] bindings) 147return 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> 157public static MemberInitExpression MemberInit(NewExpression newExpression, IEnumerable<MemberBinding> bindings) 161ReadOnlyCollection<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"/>. 22internal MemberMemberBinding(MemberInfo member, ReadOnlyCollection<MemberBinding> bindings) 33public ReadOnlyCollection<MemberBinding> Bindings { get; } 42public 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> 68public static MemberMemberBinding MemberBind(MemberInfo member, params MemberBinding[] bindings) 70return 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> 79public static MemberMemberBinding MemberBind(MemberInfo member, IEnumerable<MemberBinding> bindings) 83ReadOnlyCollection<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"/>, 101public static MemberMemberBinding MemberBind(MethodInfo propertyAccessor, params MemberBinding[] bindings) 103return 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"/>, 117public static MemberMemberBinding MemberBind(MethodInfo propertyAccessor, IEnumerable<MemberBinding> bindings) 153private static void ValidateMemberInitArgs(Type type, ReadOnlyCollection<MemberBinding> bindings) 157MemberBinding b = bindings[i];