mscorlib(4.0.0.0) API with additions
System.RuntimeFieldHandle Struct Reference

Represents a field using an internal metadata token. More...

Inheritance diagram for System.RuntimeFieldHandle:
[legend]
Collaboration diagram for System.RuntimeFieldHandle:
[legend]

Public Member Functions

internal RuntimeFieldHandle GetNativeHandle ()
 
internal RuntimeFieldHandle (IRuntimeFieldInfo fieldInfo)
 
internal IRuntimeFieldInfo GetRuntimeFieldInfo ()
 
internal bool IsNullHandle ()
 
override int GetHashCode ()
 Returns the hash code for this instance. More...
 
override bool Equals (object obj)
 Indicates whether the current instance is equal to the specified object. More...
 
bool Equals (RuntimeFieldHandle handle)
 Indicates whether the current instance is equal to the specified T:System.RuntimeFieldHandle. More...
 
static internal string GetName (RtFieldInfo field)
 
static internal bool MatchesNameHash (RuntimeFieldHandleInternal handle, uint hash)
 
static internal FieldAttributes GetAttributes (RuntimeFieldHandleInternal field)
 
static internal RuntimeType GetApproxDeclaringType (RuntimeFieldHandleInternal field)
 
static internal int GetToken (RtFieldInfo field)
 
static internal object GetValue (RtFieldInfo field, object instance, RuntimeType fieldType, RuntimeType declaringType, ref bool domainInitialized)
 
internal static unsafe object GetValueDirect (RtFieldInfo field, RuntimeType fieldType, void *pTypedRef, RuntimeType contextType)
 
static internal void SetValue (RtFieldInfo field, object obj, object value, RuntimeType fieldType, FieldAttributes fieldAttr, RuntimeType declaringType, ref bool domainInitialized)
 
internal static unsafe void SetValueDirect (RtFieldInfo field, RuntimeType fieldType, void *pTypedRef, object value, RuntimeType contextType)
 
static internal RuntimeFieldHandleInternal GetStaticFieldForGenericType (RuntimeFieldHandleInternal field, RuntimeType declaringType)
 
static internal bool AcquiresContextFromThis (RuntimeFieldHandleInternal field)
 
internal bool IsSecurityCritical ()
 
internal bool IsSecuritySafeCritical ()
 
internal bool IsSecurityTransparent ()
 
static internal void CheckAttributeAccess (RuntimeFieldHandle fieldHandle, RuntimeModule decoratedTarget)
 
void GetObjectData (SerializationInfo info, StreamingContext context)
 Populates a T:System.Runtime.Serialization.SerializationInfo with the data necessary to deserialize the field represented by the current instance. More...
 

Static Public Member Functions

static bool operator== (RuntimeFieldHandle left, RuntimeFieldHandle right)
 Indicates whether two T:System.RuntimeFieldHandle structures are equal. More...
 
static bool operator != (RuntimeFieldHandle left, RuntimeFieldHandle right)
 Indicates whether two T:System.RuntimeFieldHandle structures are not equal. More...
 
internal static unsafe Utf8String GetUtf8Name (RuntimeFieldHandleInternal field)
 
static internal RuntimeType GetApproxDeclaringType (IRuntimeFieldInfo field)
 

Properties

IntPtr Value [get]
 Gets a handle to the field represented by the current instance. More...
 

Detailed Description

Represents a field using an internal metadata token.

Definition at line 14 of file RuntimeFieldHandle.cs.

Member Function Documentation

◆ Equals() [1/2]

override bool System.RuntimeFieldHandle.Equals ( object  obj)

Indicates whether the current instance is equal to the specified object.

Parameters
objThe object to compare to the current instance.
Returns
true if obj is a T:System.RuntimeFieldHandle and equal to the value of the current instance; otherwise, false.

Definition at line 74 of file RuntimeFieldHandle.cs.

◆ Equals() [2/2]

bool System.RuntimeFieldHandle.Equals ( RuntimeFieldHandle  handle)

Indicates whether the current instance is equal to the specified T:System.RuntimeFieldHandle.

Parameters
handleThe T:System.RuntimeFieldHandle to compare to the current instance.
Returns
true if the value of handle is equal to the value of the current instance; otherwise, false.

Definition at line 90 of file RuntimeFieldHandle.cs.

◆ GetHashCode()

override int System.RuntimeFieldHandle.GetHashCode ( )

Returns the hash code for this instance.

Returns
A 32-bit signed integer that is the hash code for this instance.

Definition at line 62 of file RuntimeFieldHandle.cs.

◆ GetObjectData()

void System.RuntimeFieldHandle.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

Populates a T:System.Runtime.Serialization.SerializationInfo with the data necessary to deserialize the field represented by the current instance.

Parameters
infoThe T:System.Runtime.Serialization.SerializationInfo object to populate with serialization information.
context(Reserved) The place to store and retrieve serialized data.
Exceptions
T:System.ArgumentNullExceptioninfo is null.
T:System.Runtime.Serialization.SerializationExceptionThe P:System.RuntimeFieldHandle.Value property of the current instance is not a valid handle.

Implements System.Runtime.Serialization.ISerializable.

Definition at line 247 of file RuntimeFieldHandle.cs.

◆ operator !=()

static bool System.RuntimeFieldHandle.operator != ( RuntimeFieldHandle  left,
RuntimeFieldHandle  right 
)
static

Indicates whether two T:System.RuntimeFieldHandle structures are not equal.

Parameters
leftThe T:System.RuntimeFieldHandle to compare to right .
rightThe T:System.RuntimeFieldHandle to compare to left .
Returns
true if left is not equal to right ; otherwise, false.

Definition at line 112 of file RuntimeFieldHandle.cs.

◆ operator==()

static bool System.RuntimeFieldHandle.operator== ( RuntimeFieldHandle  left,
RuntimeFieldHandle  right 
)
static

Indicates whether two T:System.RuntimeFieldHandle structures are equal.

Parameters
leftThe T:System.RuntimeFieldHandle to compare to right .
rightThe T:System.RuntimeFieldHandle to compare to left .
Returns
true if left is equal to right ; otherwise, false.

Definition at line 101 of file RuntimeFieldHandle.cs.

Property Documentation

◆ Value

IntPtr System.RuntimeFieldHandle.Value
get

Gets a handle to the field represented by the current instance.

Returns
An T:System.IntPtr that contains the handle to the field represented by the current instance.

Definition at line 21 of file RuntimeFieldHandle.cs.


The documentation for this struct was generated from the following file: