Expression.MemberInit Method (NewExpression, IEnumerable(MemberBinding))
.NET Framework 4.6 and 4.5
Represents an expression that creates a new object and initializes a property of the object.
(in System.Core.dll) System.Linq.Expressions
static member MemberInit :
bindings:IEnumerable<MemberBinding> -> MemberInitExpression
newExpression or bindings is a null reference (Nothing in Visual Basic).
The Member property of an element of bindings does not represent a member of the type that newExpression.Type represents.
The following example demonstrates an expression that creates a new object and initializes a property of the object.
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Portable Class Library
Supported in: Portable Class Library
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8