Expression.Field Method (Expression, Type, String)

Creates a MemberExpression that represents accessing a field.

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

public static MemberExpression Field(
	Expression expression,
	Type type,
	string fieldName
)

Parameters

expression
Type: System.Linq.Expressions.Expression
The containing object of the field. This can be null for static fields.
type
Type: System.Type
The Type that contains the field.
fieldName
Type: System.String
The field to be accessed.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show: