Base:
4 overrides of GetGenericMethodDefinition
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\General\Sentinels.cs (1)
37public sealed override MethodInfo GetGenericMethodDefinition() => throw null!;
System\Reflection\TypeLoading\Methods\RoConstructedGenericMethod.cs (1)
49public sealed override MethodInfo GetGenericMethodDefinition() => _genericMethodDefinition;
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
98public sealed override MethodInfo GetGenericMethodDefinition() => IsGenericMethodDefinition ? this : throw new InvalidOperationException(); // Very uninformative but compatible exception
System\Reflection\TypeLoading\Methods\RoSyntheticMethod.cs (1)
86public sealed override MethodInfo GetGenericMethodDefinition() => throw new InvalidOperationException();