1 instantiation of TypedReference
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (1)
62return new TypedReference(ref targetRef, targetType);
31 references to TypedReference
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1211[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TypedReference))]
netstandard (1)
netstandard.cs (1)
2212[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TypedReference))]
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (2)
59public override void SetValueDirect(TypedReference obj, object value) 63public override object GetValueDirect(TypedReference obj)
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldInfo.cs (2)
72public virtual void SetValueDirect(TypedReference obj, object value) { throw new NotSupportedException(SR.NotSupported_AbstractNonCLS); } 74public virtual object? GetValueDirect(TypedReference obj) { throw new NotSupportedException(SR.NotSupported_AbstractNonCLS); }
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
675elementType == typeof(TypedReference))
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (4)
16public static TypedReference MakeTypedReference(object target, FieldInfo[] flds) 80public static Type GetTargetType(TypedReference value) 85public static RuntimeTypeHandle TargetTypeToken(TypedReference value) 90public static void SetTypedReference(TypedReference target, object? value)
src\System\ArgIterator.cs (2)
185public System.TypedReference GetNextArg() 191public System.TypedReference GetNextArg(System.RuntimeTypeHandle rth)
src\System\Reflection\MdFieldInfo.cs (2)
69public override object? GetValueDirect(TypedReference obj) 76public override void SetValueDirect(TypedReference obj, object value)
src\System\Reflection\RtFieldInfo.cs (2)
90public override object? GetValueDirect(TypedReference obj) 106public override void SetValueDirect(TypedReference obj, object value)
src\System\RuntimeHandles.cs (2)
1576internal static object? GetValueDirect(RtFieldInfo field, RuntimeType fieldType, TypedReference typedRef, RuntimeType? contextType) 1617internal static void SetValueDirect(RtFieldInfo field, RuntimeType fieldType, TypedReference typedRef, object? value, RuntimeType? contextType)
src\System\TypedReference.CoreCLR.cs (2)
22internal static ref byte GetRefAny(IntPtr clsHnd, TypedReference typedByRef) 42public static unsafe object? ToObject(TypedReference value)
System.Reflection.Context (2)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (2)
111public override object? GetValueDirect(TypedReference obj) 126public override void SetValueDirect(TypedReference obj, object value)
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
44typeof(nint), typeof(nuint), typeof(TypedReference), typeof(ValueType) };
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (1)
970/// Encodes <see cref="System.TypedReference"/>.
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Fields\RoField.cs (2)
147public sealed override object GetValueDirect(TypedReference obj) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection); 149public sealed override void SetValueDirect(TypedReference obj, object value) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
840[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TypedReference))]
System.Runtime.Serialization.Formatters (3)
System\Runtime\Serialization\ObjectManager.cs (3)
364TypedReference typedRef = TypedReference.MakeTypedReference(fixupObj, fields); 371TypedReference.SetTypedReference(typedRef, value);