4 instantiations of RuntimeFieldHandle
System.Private.CoreLib (4)
src\System\Reflection\RtFieldInfo.cs (1)
115
public override RuntimeFieldHandle FieldHandle => new
RuntimeFieldHandle
(this);
src\System\RuntimeHandles.cs (3)
1472
new
RuntimeFieldHandle
(m_ptr ?? throw new ArgumentNullException(null, SR.Arg_InvalidHandle));
1522
return new
RuntimeFieldHandle
(fieldInfo);
2008
return new
RuntimeFieldHandle
(field!);
79 references to RuntimeFieldHandle
Microsoft.CodeAnalysis (1)
SpecialType.cs (1)
227
/// Indicates that the type is <see cref="
RuntimeFieldHandle
"/>.
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\Core\Portable\SpecialType.cs (1)
227
/// Indicates that the type is <see cref="
RuntimeFieldHandle
"/>.
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\FieldInfoImpl.cs (1)
42
public override
RuntimeFieldHandle
FieldHandle
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
783
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
RuntimeFieldHandle
))]
netstandard (1)
netstandard.cs (1)
1817
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
RuntimeFieldHandle
))]
System.Private.CoreLib (69)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
68
public override
RuntimeFieldHandle
FieldHandle => throw new NotImplementedException();
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (7)
36
if (!
RuntimeFieldHandle
.IsFastPathSupported(_fieldInfo))
49
_addressOrOffset =
RuntimeFieldHandle
.GetStaticFieldAddress(_fieldInfo);
91
_addressOrOffset =
RuntimeFieldHandle
.GetInstanceFieldOffset(_fieldInfo);
178
object? ret =
RuntimeFieldHandle
.GetValue(_fieldInfo, obj, (RuntimeType)_fieldInfo.FieldType, _fieldInfo.m_declaringType, ref isClassInitialized);
193
return
RuntimeFieldHandle
.GetValue(_fieldInfo, obj, (RuntimeType)_fieldInfo.FieldType, _fieldInfo.m_declaringType, ref isClassInitialized);
303
RuntimeFieldHandle
.SetValue(_fieldInfo, obj, value, (RuntimeType)_fieldInfo.FieldType, _fieldInfo.m_declaringType, ref isClassInitialized);
330
RuntimeFieldHandle
.SetValue(_fieldInfo, obj, value, (RuntimeType)_fieldInfo.FieldType, _fieldInfo.m_declaringType, ref isClassInitialized);
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldInfo.cs (1)
38
public abstract
RuntimeFieldHandle
FieldHandle { get; }
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (1)
154
public static ReadOnlySpan<T> CreateSpan<T>(
RuntimeFieldHandle
fldHandle)
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (2)
52
targetRef = ref
RuntimeFieldHandle
.GetFieldDataReference(target, field);
57
targetRef = ref
RuntimeFieldHandle
.GetFieldDataReference(ref targetRef, field);
src\System\Reflection\Emit\DynamicILGenerator.cs (8)
809
if (handle is
RuntimeFieldHandle
)
811
fieldHandle = ((
RuntimeFieldHandle
)handle).Value;
967
public int GetTokenFor(
RuntimeFieldHandle
field)
971
public int GetTokenFor(
RuntimeFieldHandle
field, RuntimeTypeHandle contextType)
1063
public int GetTokenFor(
RuntimeFieldHandle
field)
1068
public int GetTokenFor(
RuntimeFieldHandle
field, RuntimeTypeHandle typeContext)
1105
internal
RuntimeFieldHandle
m_fieldHandle;
1108
internal GenericFieldInfo(
RuntimeFieldHandle
fieldHandle, RuntimeTypeHandle context)
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (1)
106
public override
RuntimeFieldHandle
FieldHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\System\Reflection\FieldInfo.CoreCLR.cs (2)
8
public static FieldInfo GetFieldFromHandle(
RuntimeFieldHandle
handle)
24
public static FieldInfo GetFieldFromHandle(
RuntimeFieldHandle
handle, RuntimeTypeHandle declaringType)
src\System\Reflection\MdFieldInfo.cs (1)
60
public override
RuntimeFieldHandle
FieldHandle => throw new NotSupportedException();
src\System\Reflection\RtFieldInfo.cs (7)
41
m_fieldAttributes =
RuntimeFieldHandle
.GetAttributes(handle);
58
public override string Name => m_name ??=
RuntimeFieldHandle
.GetName(this);
62
public override int MetadataToken =>
RuntimeFieldHandle
.GetToken(this);
66
return RuntimeTypeHandle.GetModule(
RuntimeFieldHandle
.GetApproxDeclaringType(this));
96
return
RuntimeFieldHandle
.GetValueDirect(this, (RuntimeType)FieldType, obj, (RuntimeType?)DeclaringType);
112
RuntimeFieldHandle
.SetValueDirect(this, (RuntimeType)FieldType, obj, value, (RuntimeType?)DeclaringType);
115
public override
RuntimeFieldHandle
FieldHandle => new RuntimeFieldHandle(this);
src\System\Reflection\RuntimeModule.cs (1)
198
RuntimeType declaringType =
RuntimeFieldHandle
.GetApproxDeclaringType(fieldHandle.Value);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (4)
19
public static unsafe void InitializeArray(Array array,
RuntimeFieldHandle
fldHandle)
29
if (!
RuntimeFieldHandle
.GetRVAFieldInfo(fldInfo.Value, out void* address, out uint size))
90
RuntimeFieldHandle
fldHandle,
99
if (!
RuntimeFieldHandle
.GetRVAFieldInfo(fldInfo.Value, out void* data, out uint totalSize))
src\System\RuntimeHandles.cs (22)
1463
return new RuntimeFieldInfoStub(handle,
RuntimeFieldHandle
.GetLoaderAllocator(handle));
1468
public unsafe partial struct RuntimeFieldHandle : IEquatable<
RuntimeFieldHandle
>, ISerializable
1471
internal
RuntimeFieldHandle
GetNativeHandle() =>
1500
if (obj is not
RuntimeFieldHandle
)
1503
RuntimeFieldHandle
handle = (
RuntimeFieldHandle
)obj;
1508
public bool Equals(
RuntimeFieldHandle
handle)
1514
/// Returns a new <see cref="
RuntimeFieldHandle
"/> object created from a handle to a RuntimeFieldInfo.
1516
/// <param name="value">An IntPtr handle to a RuntimeFieldInfo to create a <see cref="
RuntimeFieldHandle
"/> object from.</param>
1517
/// <returns>A new <see cref="
RuntimeFieldHandle
"/> object that corresponds to the value parameter.</returns>
1518
public static
RuntimeFieldHandle
FromIntPtr(IntPtr value)
1526
/// Returns the internal pointer representation of a <see cref="
RuntimeFieldHandle
"/> object.
1528
/// <param name="value">A <see cref="
RuntimeFieldHandle
"/> object to retrieve an internal pointer representation from.</param>
1529
/// <returns>An <see cref="IntPtr"/> object that represents a <see cref="
RuntimeFieldHandle
"/> object.</returns>
1530
public static IntPtr ToIntPtr(
RuntimeFieldHandle
value) => value.Value;
1532
public static bool operator ==(
RuntimeFieldHandle
left,
RuntimeFieldHandle
right) => left.Equals(right);
1534
public static bool operator !=(
RuntimeFieldHandle
left,
RuntimeFieldHandle
right) => !left.Equals(right);
1976
public
RuntimeFieldHandle
GetRuntimeFieldHandleFromMetadataToken(int fieldToken) { return ResolveFieldHandle(fieldToken); }
1978
public
RuntimeFieldHandle
ResolveFieldHandle(int fieldToken) => ResolveFieldHandle(fieldToken, null, null);
1980
public
RuntimeFieldHandle
ResolveFieldHandle(int fieldToken, RuntimeTypeHandle[]? typeInstantiationContext, RuntimeTypeHandle[]? methodInstantiationContext)
src\System\RuntimeType.CoreCLR.cs (11)
308
FieldAttributes fieldAttributes =
RuntimeFieldHandle
.GetAttributes(field);
311
RuntimeType approxDeclaringType =
RuntimeFieldHandle
.GetApproxDeclaringType(field);
312
bool isInherited =
RuntimeFieldHandle
.AcquiresContextFromThis(field) ?
888
if (!filter.Match(
RuntimeFieldHandle
.GetUtf8Name(runtimeFieldHandle)))
894
FieldAttributes fieldAttributes =
RuntimeFieldHandle
.GetAttributes(runtimeFieldHandle);
905
RuntimeTypeMetadataUpdateHandler.IsMetadataUpdateDeleted(declaringType.GetRuntimeModule(),
RuntimeFieldHandle
.GetToken(handle)))
918
runtimeFieldHandle =
RuntimeFieldHandle
.GetStaticFieldForGenericType(runtimeFieldHandle, declaringType);
1970
return GetFieldInfo(
RuntimeFieldHandle
.GetApproxDeclaringType(fieldHandle), fieldHandle);
1980
reflectedType =
RuntimeFieldHandle
.GetApproxDeclaringType(fieldHandle);
1984
RuntimeType declaredType =
RuntimeFieldHandle
.GetApproxDeclaringType(fieldHandle);
1987
if (!
RuntimeFieldHandle
.AcquiresContextFromThis(fieldHandle) ||
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
29
public override
RuntimeFieldHandle
FieldHandle
System.Reflection.Emit (1)
System\Reflection\Emit\FieldBuilderImpl.cs (1)
108
public override
RuntimeFieldHandle
FieldHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Fields\RoField.cs (1)
144
public sealed override
RuntimeFieldHandle
FieldHandle => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
742
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
RuntimeFieldHandle
))]
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\SerializationFieldInfo.cs (1)
51
public override
RuntimeFieldHandle
FieldHandle => m_field.FieldHandle;