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)
1453
new
RuntimeFieldHandle
(m_ptr ?? throw new ArgumentNullException(null, SR.Arg_InvalidHandle));
1503
return new
RuntimeFieldHandle
(fieldInfo);
1978
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)
808
if (handle is
RuntimeFieldHandle
)
810
fieldHandle = ((
RuntimeFieldHandle
)handle).Value;
963
public int GetTokenFor(
RuntimeFieldHandle
field)
967
public int GetTokenFor(
RuntimeFieldHandle
field, RuntimeTypeHandle contextType)
1059
public int GetTokenFor(
RuntimeFieldHandle
field)
1064
public int GetTokenFor(
RuntimeFieldHandle
field, RuntimeTypeHandle typeContext)
1101
internal
RuntimeFieldHandle
m_fieldHandle;
1104
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)
1444
return new RuntimeFieldInfoStub(handle,
RuntimeFieldHandle
.GetLoaderAllocator(handle));
1449
public unsafe partial struct RuntimeFieldHandle : IEquatable<
RuntimeFieldHandle
>, ISerializable
1452
internal
RuntimeFieldHandle
GetNativeHandle() =>
1481
if (obj is not
RuntimeFieldHandle
)
1484
RuntimeFieldHandle
handle = (
RuntimeFieldHandle
)obj;
1489
public bool Equals(
RuntimeFieldHandle
handle)
1495
/// Returns a new <see cref="
RuntimeFieldHandle
"/> object created from a handle to a RuntimeFieldInfo.
1497
/// <param name="value">An IntPtr handle to a RuntimeFieldInfo to create a <see cref="
RuntimeFieldHandle
"/> object from.</param>
1498
/// <returns>A new <see cref="
RuntimeFieldHandle
"/> object that corresponds to the value parameter.</returns>
1499
public static
RuntimeFieldHandle
FromIntPtr(IntPtr value)
1507
/// Returns the internal pointer representation of a <see cref="
RuntimeFieldHandle
"/> object.
1509
/// <param name="value">A <see cref="
RuntimeFieldHandle
"/> object to retrieve an internal pointer representation from.</param>
1510
/// <returns>An <see cref="IntPtr"/> object that represents a <see cref="
RuntimeFieldHandle
"/> object.</returns>
1511
public static IntPtr ToIntPtr(
RuntimeFieldHandle
value) => value.Value;
1513
public static bool operator ==(
RuntimeFieldHandle
left,
RuntimeFieldHandle
right) => left.Equals(right);
1515
public static bool operator !=(
RuntimeFieldHandle
left,
RuntimeFieldHandle
right) => !left.Equals(right);
1946
public
RuntimeFieldHandle
GetRuntimeFieldHandleFromMetadataToken(int fieldToken) { return ResolveFieldHandle(fieldToken); }
1948
public
RuntimeFieldHandle
ResolveFieldHandle(int fieldToken) => ResolveFieldHandle(fieldToken, null, null);
1950
public
RuntimeFieldHandle
ResolveFieldHandle(int fieldToken, RuntimeTypeHandle[]? typeInstantiationContext, RuntimeTypeHandle[]? methodInstantiationContext)
src\System\RuntimeType.CoreCLR.cs (11)
307
FieldAttributes fieldAttributes =
RuntimeFieldHandle
.GetAttributes(field);
310
RuntimeType approxDeclaringType =
RuntimeFieldHandle
.GetApproxDeclaringType(field);
311
bool isInherited =
RuntimeFieldHandle
.AcquiresContextFromThis(field) ?
887
if (!filter.Match(
RuntimeFieldHandle
.GetUtf8Name(runtimeFieldHandle)))
893
FieldAttributes fieldAttributes =
RuntimeFieldHandle
.GetAttributes(runtimeFieldHandle);
904
RuntimeTypeMetadataUpdateHandler.IsMetadataUpdateDeleted(declaringType.GetRuntimeModule(),
RuntimeFieldHandle
.GetToken(handle)))
917
runtimeFieldHandle =
RuntimeFieldHandle
.GetStaticFieldForGenericType(runtimeFieldHandle, declaringType);
1969
return GetFieldInfo(
RuntimeFieldHandle
.GetApproxDeclaringType(fieldHandle), fieldHandle);
1979
reflectedType =
RuntimeFieldHandle
.GetApproxDeclaringType(fieldHandle);
1983
RuntimeType declaredType =
RuntimeFieldHandle
.GetApproxDeclaringType(fieldHandle);
1986
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)
746
[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;