mscorlib(4.0.0.0) API with additions
MemberAssignment.cs
1 using System.Reflection;
2 
4 {
6  [global::__DynamicallyInvokable]
7  public sealed class MemberAssignment : MemberBinding
8  {
9  private Expression _expression;
10 
13  [global::__DynamicallyInvokable]
14  public Expression Expression
15  {
16  [global::__DynamicallyInvokable]
17  get
18  {
19  return _expression;
20  }
21  }
22 
23  internal MemberAssignment(MemberInfo member, Expression expression)
24  : base(MemberBindingType.Assignment, member)
25  {
26  _expression = expression;
27  }
28 
32  [global::__DynamicallyInvokable]
33  public MemberAssignment Update(Expression expression)
34  {
35  if (expression == Expression)
36  {
37  return this;
38  }
39  return Expression.Bind(base.Member, expression);
40  }
41  }
42 }
Obtains information about the attributes of a member and provides access to member metadata.
Definition: MemberInfo.cs:14
A binding that represents initializing a member with the value of an expression.
Definition: __Canon.cs:3
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
MemberBindingType
Describes the binding types that are used in T:System.Linq.Expressions.MemberInitExpression objects.
Represents assignment operation for a field or property of an object.
MemberAssignment Update(Expression expression)
Creates a new expression that is like this one, but using the supplied children. If all of the childr...