Click or drag to resize
FieldInfo Class
Discovers the attributes of a field and provides access to field metadata.
Inheritance Hierarchy

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public abstract class FieldInfo : MemberInfo, 
	_FieldInfo

The FieldInfo type exposes the following members.

Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Overrides MemberInfoEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides MemberInfoGetHashCode.)
Public methodGetRawConstantValue
Returns a literal value associated with the field by a compiler.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
When overridden in a derived class, returns the value of a field supported by a given object.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyFieldType
Gets the type of this field object.
Public propertyIsInitOnly
Gets a value indicating whether the field can only be set in the body of the constructor.
Public propertyName
Gets the name of the current member.
(Inherited from MemberInfo.)
Top
See Also