mscorlib(4.0.0.0) API with additions
MemberListBinding.cs
3 using System.Reflection;
4 
6 {
8  [global::__DynamicallyInvokable]
9  public sealed class MemberListBinding : MemberBinding
10  {
11  private ReadOnlyCollection<ElementInit> _initializers;
12 
15  [global::__DynamicallyInvokable]
17  {
18  [global::__DynamicallyInvokable]
19  get
20  {
21  return _initializers;
22  }
23  }
24 
25  internal MemberListBinding(MemberInfo member, ReadOnlyCollection<ElementInit> initializers)
26  : base(MemberBindingType.ListBinding, member)
27  {
28  _initializers = initializers;
29  }
30 
34  [global::__DynamicallyInvokable]
36  {
37  if (initializers == Initializers)
38  {
39  return this;
40  }
41  return Expression.ListBind(base.Member, initializers);
42  }
43  }
44 }
Obtains information about the attributes of a member and provides access to member metadata.
Definition: MemberInfo.cs:14
Provides the base class for a generic read-only collection.
Definition: __Canon.cs:3
Represents initializing the elements of a collection member of a newly created object.
Exposes the enumerator, which supports a simple iteration over a collection of a specified type....
Definition: IEnumerable.cs:9
A binding that represents initializing a member of type T:System.Collections.IList or T:System....
Provides the base class from which the classes that represent bindings that are used to initialize me...
Definition: MemberBinding.cs:7
Provides the base class from which the classes that represent expression tree nodes are derived....
Definition: Expression.cs:17
MemberListBinding Update(IEnumerable< ElementInit > initializers)
Creates a new expression that is like this one, but using the supplied children. If all of the childr...
MemberBindingType
Describes the binding types that are used in T:System.Linq.Expressions.MemberInitExpression objects.
ReadOnlyCollection< ElementInit > Initializers
Gets the element initializers for initializing a collection member of a newly created object.