2 references to GetGenericTypeArgumentOrNull
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Ecma\EcmaSignatureTypeProviderForToString.cs (1)
54
public string GetGenericTypeParameter(TypeContext genericContext, int index) => genericContext.
GetGenericTypeArgumentOrNull
(index)?.ToString() ?? ("!" + index);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.TypeProvider.cs (1)
35
public RoType GetGenericTypeParameter(TypeContext genericContext, int index) => genericContext.
GetGenericTypeArgumentOrNull
(index) ?? throw new BadImageFormatException(SR.Format(SR.GenericTypeParamIndexOutOfRange, index));