13 [__DynamicallyInvokable]
14 [PermissionSet(
SecurityAction.InheritanceDemand, Name =
"FullTrust")]
23 [__DynamicallyInvokable]
26 [__DynamicallyInvokable]
32 [__DynamicallyInvokable]
35 [__DynamicallyInvokable]
41 [__DynamicallyInvokable]
44 [__DynamicallyInvokable]
51 [__DynamicallyInvokable]
54 [__DynamicallyInvokable]
64 [__DynamicallyInvokable]
67 [__DynamicallyInvokable]
77 [__DynamicallyInvokable]
80 [__DynamicallyInvokable]
90 [__DynamicallyInvokable]
93 [__DynamicallyInvokable]
103 [__DynamicallyInvokable]
106 [__DynamicallyInvokable]
116 [__DynamicallyInvokable]
119 [__DynamicallyInvokable]
129 [__DynamicallyInvokable]
132 [__DynamicallyInvokable]
142 [__DynamicallyInvokable]
145 [__DynamicallyInvokable]
155 [__DynamicallyInvokable]
158 [__DynamicallyInvokable]
173 [__DynamicallyInvokable]
176 [__DynamicallyInvokable]
191 public virtual bool IsSecurityCritical => FieldHandle.IsSecurityCritical();
196 public virtual bool IsSecuritySafeCritical => FieldHandle.IsSecuritySafeCritical();
201 public virtual bool IsSecurityTransparent => FieldHandle.IsSecurityTransparent();
208 [__DynamicallyInvokable]
211 if (handle.IsNullHandle())
215 FieldInfo fieldInfo = RuntimeType.GetFieldInfo(handle.GetRuntimeFieldInfo());
232 [__DynamicallyInvokable]
235 if (handle.IsNullHandle())
239 return RuntimeType.GetFieldInfo(declaringType.GetRuntimeType(), handle.GetRuntimeFieldInfo());
247 [__DynamicallyInvokable]
250 if ((
object)left == right)
254 if ((
object)left ==
null || (
object)right ==
null || left is RuntimeFieldInfo || right is RuntimeFieldInfo)
258 return left.
Equals(right);
266 [__DynamicallyInvokable]
269 return !(left == right);
276 [__DynamicallyInvokable]
279 return base.Equals(obj);
284 [__DynamicallyInvokable]
287 return base.GetHashCode();
308 [CLSCompliant(
false)]
320 [CLSCompliant(
false)]
333 [__DynamicallyInvokable]
334 public abstract object GetValue(
object obj);
365 [DebuggerStepThrough]
367 [__DynamicallyInvokable]
395 throw new NotImplementedException();
407 throw new NotImplementedException();
420 void _FieldInfo.
Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid,
short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
422 throw new NotImplementedException();
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo)
Retrieves the type information for an object, which can then be used to get the type information for ...
Obtains information about the attributes of a member and provides access to member metadata.
bool IsNotSerialized
Gets a value indicating whether this field has the NotSerialized attribute.
virtual Type GetGenericTypeDefinition()
Returns a T:System.Type object that represents a generic type definition from which the current gener...
bool IsSpecialName
Gets a value indicating whether the corresponding SpecialName attribute is set in the T:System....
bool IsLiteral
Gets a value indicating whether the value is written at compile time and cannot be changed.
bool IsStatic
Gets a value indicating whether the field is static.
abstract Type FieldType
Gets the type of this field object.
void GetTypeInfoCount(out uint pcTInfo)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
abstract Type DeclaringType
Gets the class that declares this member.
Discovers the attributes of a field and provides access to field metadata.
BindingFlags
Specifies flags that control binding and the way in which the search for members and types is conduct...
virtual Type [] GetOptionalCustomModifiers()
Gets an array of types that identify the optional custom modifiers of the field.
Represents a field using an internal metadata token.
bool IsInitOnly
Gets a value indicating whether the field can only be set in the body of the constructor.
Represents a type using an internal metadata token.
virtual bool IsGenericType
Gets a value indicating whether the current type is a generic type.
static Binder DefaultBinder
Gets a reference to the default binder, which implements internal rules for selecting the appropriate...
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
Provides access to properties and methods exposed by an object.
SecurityAction
Specifies the security actions that can be performed using declarative security.
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
Maps a set of names to a corresponding set of dispatch identifiers.
Provides information about, and means to manipulate, the current environment and platform....
Describes objects that contain both a managed pointer to a location and a runtime representation of t...
override MemberTypes MemberType
Gets a T:System.Reflection.MemberTypes value indicating that this member is a field.
static bool operator !=(FieldInfo left, FieldInfo right)
Indicates whether two T:System.Reflection.FieldInfo objects are not equal.
abstract RuntimeFieldHandle FieldHandle
Gets a RuntimeFieldHandle, which is a handle to the internal metadata representation of a field.
FieldAttributes
Specifies flags that describe the attributes of a field.
bool IsAssembly
Gets a value indicating whether the potential visibility of this field is described by F:System....
static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle, RuntimeTypeHandle declaringType)
Gets a T:System.Reflection.FieldInfo for the field represented by the specified handle,...
Represents type declarations: class types, interface types, array types, value types,...
virtual Type [] GetRequiredCustomModifiers()
Gets an array of types that identify the required custom modifiers of the property.
new Type GetType()
Provides COM objects with version-independent access to the M:System.Object.GetType method.
abstract string Name
Gets the name of the current member.
void SetValue(object obj, object value)
Sets the value of the field supported by the given object.
bool IsFamilyAndAssembly
Gets a value indicating whether the visibility of this field is described by F:System....
Selects a member from a list of candidates, and performs type conversion from actual argument type to...
Exposes the public members of the T:System.Reflection.FieldInfo class to unmanaged code.
abstract FieldAttributes Attributes
Gets the attributes associated with this field.
bool IsPublic
Gets a value indicating whether the field is public.
static CultureInfo CurrentCulture
Gets or sets the T:System.Globalization.CultureInfo object that represents the culture used by the cu...
The exception that is thrown when one of the arguments provided to a method is not valid.
override bool Equals(object obj)
Returns a value that indicates whether this instance is equal to a specified object.
static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle)
Gets a T:System.Reflection.FieldInfo for the field represented by the specified handle.
virtual void SetValueDirect(TypedReference obj, object value)
Sets the value of the field supported by the given object.
bool IsFamilyOrAssembly
Gets a value indicating whether the potential visibility of this field is described by F:System....
virtual object GetRawConstantValue()
Returns a literal value associated with the field by a compiler.
virtual object GetValueDirect(TypedReference obj)
Returns the value of a field supported by a given object.
Specifies that the class can be serialized.
ClassInterfaceType
Identifies the type of class interface that is generated for a class.
Provides information about a specific culture (called a locale for unmanaged code development)....
The exception that is thrown when an invoked method is not supported, or when there is an attempt to ...
MemberTypes
Marks each type of member that is defined as a derived class of T:System.Reflection....
bool IsPrivate
Gets a value indicating whether the field is private.
The exception that is thrown when a requested method or operation is not implemented.
bool IsFamily
Gets a value indicating whether the visibility of this field is described by F:System....
override int GetHashCode()
Returns the hash code for this instance.