FieldInfo Class |
Namespace: System.Reflection
[SerializableAttribute] public abstract class FieldInfo : MemberInfo, _FieldInfo
The FieldInfo type exposes the following members.
Name | Description | |
---|---|---|
Equals | Returns a value that indicates whether this instance is equal to a specified object. (Overrides MemberInfoEquals(Object).) | |
GetHashCode | Returns the hash code for this instance. (Overrides MemberInfoGetHashCode.) | |
GetRawConstantValue | Returns a literal value associated with the field by a compiler. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue | When overridden in a derived class, returns the value of a field supported by a given object. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
FieldType | Gets the type of this field object. | |
IsInitOnly | Gets a value indicating whether the field can only be set in the body of the constructor. | |
Name | Gets the name of the current member. (Inherited from MemberInfo.) |