Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NewExpression.Members Property

 

Gets the members that can retrieve the values of the fields that were initialized with constructor arguments.

Namespace:   System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

public ReadOnlyCollection<MemberInfo> Members { get; }

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<MemberInfo>

A collection of MemberInfo objects that represent the members that can retrieve the values of the fields that were initialized with constructor arguments.

The Members property provides a mapping between the constructor arguments and the type members that correspond to those values. In the case of the construction of an anonymous type, this property maps the constructor arguments to the properties that are exposed by the anonymous type. This mapping information is important because the fields that are initialized by the construction of an anonymous type, or the properties that access those fields, are not discoverable through the Constructor or Arguments properties of a NewExpression node.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft