1 instantiation of TypedReference
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (1)
62
return 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)
59
public override void SetValueDirect(
TypedReference
obj, object value)
63
public override object GetValueDirect(
TypedReference
obj)
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldInfo.cs (2)
72
public virtual void SetValueDirect(
TypedReference
obj, object value) { throw new NotSupportedException(SR.NotSupported_AbstractNonCLS); }
74
public virtual object? GetValueDirect(
TypedReference
obj) { throw new NotSupportedException(SR.NotSupported_AbstractNonCLS); }
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
675
elementType == typeof(
TypedReference
))
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (4)
16
public static
TypedReference
MakeTypedReference(object target, FieldInfo[] flds)
80
public static Type GetTargetType(
TypedReference
value)
85
public static RuntimeTypeHandle TargetTypeToken(
TypedReference
value)
90
public static void SetTypedReference(
TypedReference
target, object? value)
src\System\ArgIterator.cs (2)
185
public System.
TypedReference
GetNextArg()
191
public System.
TypedReference
GetNextArg(System.RuntimeTypeHandle rth)
src\System\Reflection\MdFieldInfo.cs (2)
69
public override object? GetValueDirect(
TypedReference
obj)
76
public override void SetValueDirect(
TypedReference
obj, object value)
src\System\Reflection\RtFieldInfo.cs (2)
90
public override object? GetValueDirect(
TypedReference
obj)
106
public override void SetValueDirect(
TypedReference
obj, object value)
src\System\RuntimeHandles.cs (2)
1576
internal static object? GetValueDirect(RtFieldInfo field, RuntimeType fieldType,
TypedReference
typedRef, RuntimeType? contextType)
1617
internal static void SetValueDirect(RtFieldInfo field, RuntimeType fieldType,
TypedReference
typedRef, object? value, RuntimeType? contextType)
src\System\TypedReference.CoreCLR.cs (2)
22
internal static ref byte GetRefAny(IntPtr clsHnd,
TypedReference
typedByRef)
42
public static unsafe object? ToObject(
TypedReference
value)
System.Reflection.Context (2)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (2)
111
public override object? GetValueDirect(
TypedReference
obj)
126
public override void SetValueDirect(
TypedReference
obj, object value)
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
44
typeof(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)
147
public sealed override object GetValueDirect(
TypedReference
obj) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
149
public 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)
364
TypedReference
typedRef =
TypedReference
.MakeTypedReference(fixupObj, fields);
371
TypedReference
.SetTypedReference(typedRef, value);