1 instantiation of RuntimeFieldHandle
System.Private.CoreLib (1)
System\RuntimeFieldHandle.cs (1)
59
public static RuntimeFieldHandle FromIntPtr(IntPtr value) => new
RuntimeFieldHandle
(value);
52 references to RuntimeFieldHandle
Microsoft.CodeAnalysis (1)
SpecialType.cs (1)
227
/// Indicates that the type is <see cref="
RuntimeFieldHandle
"/>.
mscorlib (1)
src\runtime\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 (30)
Internal\Reflection\Augments\ReflectionAugments.cs (2)
158
public static FieldInfo GetFieldFromHandle(
RuntimeFieldHandle
runtimeFieldHandle)
175
public static FieldInfo GetFieldFromHandle(
RuntimeFieldHandle
runtimeFieldHandle, RuntimeTypeHandle declaringTypeHandle)
Internal\Reflection\Core\Execution\ExecutionEnvironment.cs (2)
65
public abstract bool TryGetFieldFromHandle(
RuntimeFieldHandle
runtimeFieldHandle, out RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle);
66
public abstract bool TryGetFieldFromHandleAndType(
RuntimeFieldHandle
runtimeFieldHandle, RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle);
Internal\Runtime\Augments\TypeLoaderCallbacks.cs (1)
25
public abstract
RuntimeFieldHandle
GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, FieldHandle handle);
Internal\Runtime\CompilerHelpers\LdTokenHelpers.cs (2)
20
private static unsafe
RuntimeFieldHandle
GetRuntimeFieldHandle(IntPtr pHandleSignature)
22
RuntimeFieldHandle
returnValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
68
public override
RuntimeFieldHandle
FieldHandle => throw new NotImplementedException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\FieldInfo.cs (1)
38
public abstract
RuntimeFieldHandle
FieldHandle { get; }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (1)
154
public static ReadOnlySpan<T> CreateSpan<T>(
RuntimeFieldHandle
fldHandle)
System\ModuleHandle.cs (3)
43
public
RuntimeFieldHandle
GetRuntimeFieldHandleFromMetadataToken(int fieldToken)
79
public
RuntimeFieldHandle
ResolveFieldHandle(int fieldToken)
85
public
RuntimeFieldHandle
ResolveFieldHandle(int fieldToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
System\Reflection\Emit\DynamicILInfo.cs (2)
44
public int GetTokenFor(
RuntimeFieldHandle
field)
48
public int GetTokenFor(
RuntimeFieldHandle
field, RuntimeTypeHandle contextType)
System\Reflection\FieldInfo.NativeAot.cs (2)
10
public static FieldInfo GetFieldFromHandle(
RuntimeFieldHandle
handle) => ReflectionAugments.GetFieldFromHandle(handle);
11
public static FieldInfo GetFieldFromHandle(
RuntimeFieldHandle
handle, RuntimeTypeHandle declaringType) => ReflectionAugments.GetFieldFromHandle(handle, declaringType);
System\Reflection\Runtime\FieldInfos\NativeFormat\NativeFormatRuntimeFieldInfo.cs (1)
127
public sealed override
RuntimeFieldHandle
FieldHandle
System\Reflection\Runtime\FieldInfos\RuntimeFieldInfo.cs (1)
180
public abstract override
RuntimeFieldHandle
FieldHandle { get; }
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (1)
22
public static void InitializeArray(Array array,
RuntimeFieldHandle
fldHandle)
System\RuntimeFieldHandle.cs (10)
15
public struct RuntimeFieldHandle : IEquatable<
RuntimeFieldHandle
>, ISerializable
28
if (!(obj is
RuntimeFieldHandle
))
31
return Equals((
RuntimeFieldHandle
)obj);
34
public unsafe bool Equals(
RuntimeFieldHandle
handle)
59
public static
RuntimeFieldHandle
FromIntPtr(IntPtr value) => new RuntimeFieldHandle(value);
61
public static IntPtr ToIntPtr(
RuntimeFieldHandle
value) => value.Value;
63
public static bool operator ==(
RuntimeFieldHandle
left,
RuntimeFieldHandle
right)
68
public static bool operator !=(
RuntimeFieldHandle
left,
RuntimeFieldHandle
right)
System.Private.Reflection.Execution (2)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MappingTables.cs (2)
814
public sealed override unsafe bool TryGetFieldFromHandle(
RuntimeFieldHandle
runtimeFieldHandle, out RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle)
822
public sealed override bool TryGetFieldFromHandleAndType(
RuntimeFieldHandle
runtimeFieldHandle, RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle)
System.Private.TypeLoader (12)
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (1)
302
RuntimeFieldHandle
handle = TypeLoaderEnvironment.Instance.GetRuntimeFieldHandleForComponents(
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (1)
66
public override
RuntimeFieldHandle
GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, FieldHandle handle)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.LdTokenResultLookup.cs (7)
119
private LowLevelDictionary<RuntimeFieldHandleKey,
RuntimeFieldHandle
> _runtimeFieldHandles = new LowLevelDictionary<RuntimeFieldHandleKey,
RuntimeFieldHandle
>();
125
public unsafe
RuntimeFieldHandle
GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, int handle)
130
public unsafe
RuntimeFieldHandle
GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, FieldHandle handle)
136
if (!_runtimeFieldHandles.TryGetValue(key, out
RuntimeFieldHandle
runtimeFieldHandle))
141
runtimeFieldHandle =
RuntimeFieldHandle
.FromIntPtr((nint)fieldData);
150
public unsafe bool TryGetRuntimeFieldHandleComponents(
RuntimeFieldHandle
runtimeFieldHandle, out RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle)
Internal\Runtime\TypeLoader\TypeLoaderTypeSystemContext.cs (1)
128
return (DefType)ResolveRuntimeTypeHandle(typeof(
RuntimeFieldHandle
).TypeHandle);
Internal\Runtime\TypeLoader\TypeSystemExtensions.cs (2)
55
public static unsafe bool IsDynamic(this
RuntimeFieldHandle
rtfh)
56
=> (
RuntimeFieldHandle
.ToIntPtr(rtfh) & 1) != 0;
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)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
747
[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;