2 types derived from RuntimeFieldInfo
System.Private.CoreLib (2)
src\System\Reflection\MdFieldInfo.cs (1)
11
internal sealed unsafe class MdFieldInfo :
RuntimeFieldInfo
src\System\Reflection\RtFieldInfo.cs (1)
12
internal sealed class RtFieldInfo :
RuntimeFieldInfo
, IRuntimeFieldInfo
35 references to RuntimeFieldInfo
System.Private.CoreLib (35)
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (2)
33
RuntimeFieldInfo
field = flds[i] as
RuntimeFieldInfo
?? throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo);
src\System\Reflection\Emit\DynamicILGenerator.cs (4)
144
RuntimeFieldInfo
runtimeField = field as
RuntimeFieldInfo
??
501
private int GetTokenFor(
RuntimeFieldInfo
runtimeField)
506
private int GetTokenFor(
RuntimeFieldInfo
runtimeField, RuntimeType rtType)
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (2)
150
private int GetMemberRefOfFieldInfo(int tkType, RuntimeTypeHandle declaringType,
RuntimeFieldInfo
runtimeField)
1203
else if (field is
RuntimeFieldInfo
rtField)
src\System\Reflection\RuntimeCustomAttributeData.cs (7)
28
internal static IList<CustomAttributeData> GetCustomAttributesInternal(
RuntimeFieldInfo
target)
1202
internal static bool IsDefined(
RuntimeFieldInfo
field, RuntimeType caType)
1360
internal static object[] GetCustomAttributes(
RuntimeFieldInfo
field, RuntimeType caType)
2123
internal static void GetCustomAttributes(
RuntimeFieldInfo
field, RuntimeType caType, ref RuntimeType.ListBuilder<Attribute> pcas)
2152
internal static bool IsDefined(
RuntimeFieldInfo
field, RuntimeType? caType)
2235
private static MarshalAsAttribute? GetMarshalAsCustomAttribute(
RuntimeFieldInfo
field)
2250
private static FieldOffsetAttribute? GetFieldOffsetCustomAttribute(
RuntimeFieldInfo
field)
src\System\Reflection\RuntimeFieldInfo.cs (1)
45
public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => HasSameMetadataDefinitionAsCore<
RuntimeFieldInfo
>(other);
src\System\RuntimeHandles.cs (2)
1552
internal static ref byte GetFieldDataReference(object target,
RuntimeFieldInfo
field)
1561
internal static ref byte GetFieldDataReference(ref byte target,
RuntimeFieldInfo
field)
src\System\RuntimeType.CoreCLR.cs (17)
315
T[] list = (T[])(object)new
RuntimeFieldInfo
[1] {
789
private
RuntimeFieldInfo
[] PopulateFields(Filter filter)
791
ListBuilder<
RuntimeFieldInfo
> list = default;
832
private unsafe void PopulateRtFields(Filter filter, RuntimeType declaringType, ref ListBuilder<
RuntimeFieldInfo
> list)
849
ReadOnlySpan<IntPtr> fieldHandles, RuntimeType declaringType, ref ListBuilder<
RuntimeFieldInfo
> list)
888
RuntimeFieldInfo
runtimeFieldInfo =
895
private void PopulateLiteralFields(Filter filter, RuntimeType declaringType, ref ListBuilder<
RuntimeFieldInfo
> list)
945
RuntimeFieldInfo
runtimeFieldInfo =
1411
private MemberInfoCache<
RuntimeFieldInfo
>? m_fieldInfoCache;
1685
internal
RuntimeFieldInfo
[] GetFieldList(MemberListType listType, string? name)
2571
RuntimeFieldInfo
[] cache = Cache.GetFieldList(listType, name);
2578
RuntimeFieldInfo
fieldInfo = cache[i];
2919
RuntimeFieldInfo
[] cache = Cache.GetFieldList(listType, name);
2927
RuntimeFieldInfo
fieldInfo = cache[i];
3179
private static
RuntimeFieldInfo
? GetFieldWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo field)
3181
RuntimeFieldInfo
[] cache = runtimeType.Cache.GetFieldList(MemberListType.CaseSensitive, field.Name);
3185
RuntimeFieldInfo
candidate = cache[i];