5 references to ToMethodOrNull
System.Reflection.MetadataLoadContext (5)
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\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);