Compartir a través de


FieldInfo.MemberType Property

Gets the type of property reflected by the current FieldInfo object.

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)

Syntax

public virtual MemberTypes MemberType { get; }

Property Value

A MemberTypes object.

Remarks

The value retrieved by this property indicates that the specified member is a field.

Use this property when testing a particular field as a generic member.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

FieldInfo Class
FieldInfo Members
System.Reflection Namespace