4 types derived from RoMethod
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\General\Sentinels.cs (1)
27
private sealed class SentinelMethod :
RoMethod
System\Reflection\TypeLoading\Methods\RoConstructedGenericMethod.cs (1)
13
internal sealed partial class RoConstructedGenericMethod :
RoMethod
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
14
internal abstract class RoDefinitionMethod :
RoMethod
System\Reflection\TypeLoading\Methods\RoSyntheticMethod.cs (1)
13
internal sealed partial class RoSyntheticMethod :
RoMethod
32 references to RoMethod
System.Reflection.MetadataLoadContext (32)
System\CoreRtBridge.cs (2)
62
if (m is
RoMethod
roMethod)
71
if (m is
RoMethod
roMethod)
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (3)
93
protected sealed override
RoMethod
? ComputeEventAddMethod() => EventDefinition.GetAccessors().Adder.ToMethodOrNull(GetRoDeclaringType(), ReflectedType);
94
protected sealed override
RoMethod
? ComputeEventRemoveMethod() => EventDefinition.GetAccessors().Remover.ToMethodOrNull(GetRoDeclaringType(), ReflectedType);
95
protected sealed override
RoMethod
? ComputeEventRaiseMethod() => EventDefinition.GetAccessors().Raiser.ToMethodOrNull(GetRoDeclaringType(), ReflectedType);
System\Reflection\TypeLoading\Events\RoEvent.cs (9)
57
private
RoMethod
? GetRoAddMethod() => (_lazyAdder == Sentinels.RoMethod) ? (_lazyAdder = ComputeEventAddMethod()?.FilterInheritedAccessor()) : _lazyAdder;
58
private
RoMethod
? GetRoRemoveMethod() => (_lazyRemover == Sentinels.RoMethod) ? (_lazyRemover = ComputeEventRemoveMethod()?.FilterInheritedAccessor()) : _lazyRemover;
59
private
RoMethod
? GetRoRaiseMethod() => (_lazyRaiser == Sentinels.RoMethod) ? (_lazyRaiser = ComputeEventRaiseMethod()?.FilterInheritedAccessor()) : _lazyRaiser;
65
protected abstract
RoMethod
? ComputeEventAddMethod();
66
protected abstract
RoMethod
? ComputeEventRemoveMethod();
67
protected abstract
RoMethod
? ComputeEventRaiseMethod();
69
private volatile
RoMethod
? _lazyAdder = Sentinels.RoMethod;
70
private volatile
RoMethod
? _lazyRemover = Sentinels.RoMethod;
71
private volatile
RoMethod
? _lazyRaiser = Sentinels.RoMethod;
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (2)
118
public static
RoMethod
? ToMethodOrNull(this MethodDefinitionHandle handle, RoInstantiationProviderType declaringType, Type reflectedType)
126
public static
RoMethod
ToMethod(this MethodDefinitionHandle handle, RoInstantiationProviderType declaringType, Type reflectedType)
System\Reflection\TypeLoading\General\Helpers.cs (2)
66
public static
RoMethod
? FilterInheritedAccessor(this
RoMethod
accessor)
System\Reflection\TypeLoading\General\Sentinels.cs (1)
15
public static readonly
RoMethod
RoMethod = new SentinelMethod();
System\Reflection\TypeLoading\Properties\Ecma\EcmaProperty.cs (2)
98
protected sealed override
RoMethod
? ComputeGetterMethod() => PropertyDefinition.GetAccessors().Getter.ToMethodOrNull(GetRoDeclaringType(), ReflectedType);
99
protected sealed override
RoMethod
? ComputeSetterMethod() => PropertyDefinition.GetAccessors().Setter.ToMethodOrNull(GetRoDeclaringType(), ReflectedType);
System\Reflection\TypeLoading\Properties\RoProperty.cs (7)
97
private
RoMethod
? GetRoGetMethod() => object.ReferenceEquals(_lazyGetter, Sentinels.RoMethod) ? (_lazyGetter = ComputeGetterMethod()?.FilterInheritedAccessor()) : _lazyGetter;
98
private
RoMethod
? GetRoSetMethod() => object.ReferenceEquals(_lazySetter, Sentinels.RoMethod) ? (_lazySetter = ComputeSetterMethod()?.FilterInheritedAccessor()) : _lazySetter;
100
protected abstract
RoMethod
? ComputeGetterMethod();
101
protected abstract
RoMethod
? ComputeSetterMethod();
103
private volatile
RoMethod
? _lazyGetter = Sentinels.RoMethod;
104
private volatile
RoMethod
? _lazySetter = Sentinels.RoMethod;
134
RoMethod
? accessor = (useGetter ? GetRoGetMethod() : GetRoSetMethod());
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericMethodParameterType.cs (4)
26
private
RoMethod
GetRoDeclaringMethod() => _lazyDeclaringMethod ??= ComputeDeclaringMethod();
27
private
RoMethod
ComputeDeclaringMethod() => ((MethodDefinitionHandle)(GenericParameter.Parent)).ResolveMethod<
RoMethod
>(GetEcmaModule(), default);
28
private volatile
RoMethod
? _lazyDeclaringMethod;