25 references to Format
System.Reflection.MetadataLoadContext (25)
System\Reflection\MetadataLoadContext.Loading.cs (1)
57
throw new FileLoadException(SR.
Format
(SR.FileLoadDuplicateAssemblies, defName));
System\Reflection\MetadataLoadContext.Resolving.cs (1)
64
return new RoExceptionAssembly(new FileNotFoundException(SR.
Format
(SR.FileNotFoundAssembly, refName.FullName)));
System\Reflection\PathAssemblyResolver.cs (2)
39
throw new ArgumentException(SR.
Format
(SR.Arg_InvalidPath, path), nameof(assemblyPaths));
43
throw new ArgumentException(SR.
Format
(SR.Arg_InvalidPath, path), nameof(assemblyPaths));
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.Modules.cs (1)
33
throw new FileNotFoundException(SR.
Format
(SR.FileNotFoundModule, moduleName));
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (1)
106
throw new ArgumentException(SR.
Format
(SR.SpecifiedFileNameInvalid, moduleName)); // Name not in manifest.
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (1)
79
throw new MissingMethodException(SR.
Format
(SR.MissingCustomAttributeConstructor, declaringType));
System\Reflection\TypeLoading\General\Assignability.cs (4)
259
return coreTypes[CoreType.SByte] ?? throw new TypeLoadException(SR.
Format
(SR.CoreTypeNotFound, "System.SByte"));
262
return coreTypes[CoreType.Int16] ?? throw new TypeLoadException(SR.
Format
(SR.CoreTypeNotFound, "System.Int16"));
265
return coreTypes[CoreType.Int32] ?? throw new TypeLoadException(SR.
Format
(SR.CoreTypeNotFound, "System.Int32"));
268
return coreTypes[CoreType.Int64] ?? throw new TypeLoadException(SR.
Format
(SR.CoreTypeNotFound, "System.Int64"));
System\Reflection\TypeLoading\Methods\RoConstructedGenericMethod.cs (1)
52
public sealed override MethodInfo MakeGenericMethod(params Type[] typeArguments) => throw new InvalidOperationException(SR.
Format
(SR.Arg_NotGenericMethodDefinition, this));
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (2)
106
throw new InvalidOperationException(SR.
Format
(SR.Arg_NotGenericMethodDefinition, this));
117
throw new ArgumentException(SR.
Format
(SR.MakeGenericType_NotLoadedByMetadataLoadContext, typeArgument));
System\Reflection\TypeLoading\Methods\RoSyntheticMethod.cs (1)
88
public sealed override MethodInfo MakeGenericMethod(params Type[] typeArguments) => throw new InvalidOperationException(SR.
Format
(SR.Arg_NotGenericMethodDefinition, this));
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.ManifestResources.cs (1)
57
throw new BadImageFormatException(SR.
Format
(SR.ManifestResourceInfoReferencedBadModule, result.FileName));
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.TypeProvider.cs (2)
35
public RoType GetGenericTypeParameter(TypeContext genericContext, int index) => genericContext.GetGenericTypeArgumentOrNull(index) ?? throw new BadImageFormatException(SR.
Format
(SR.GenericTypeParamIndexOutOfRange, index));
36
public RoType GetGenericMethodParameter(TypeContext genericContext, int index) => genericContext.GetGenericMethodArgumentOrNull(index) ?? throw new BadImageFormatException(SR.
Format
(SR.GenericMethodParamIndexOutOfRange, index));
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
126
public sealed override Type MakeGenericType(params Type[] typeArguments) => throw new InvalidOperationException(SR.
Format
(SR.Arg_NotGenericTypeDefinition, this));
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (2)
95
throw new InvalidOperationException(SR.
Format
(SR.Arg_NotGenericTypeDefinition, this));
115
throw new ArgumentException(SR.
Format
(SR.MakeGenericType_NotLoadedByMetadataLoadContext, typeArgument));
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (1)
188
public sealed override Type MakeGenericType(params Type[] typeArguments) => throw new InvalidOperationException(SR.
Format
(SR.Arg_NotGenericTypeDefinition, this));
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (1)
49
public sealed override Type MakeGenericType(params Type[] typeArguments) => throw new InvalidOperationException(SR.
Format
(SR.Arg_NotGenericTypeDefinition, this));
System\Reflection\TypeLoading\Types\RoHasElementType.cs (1)
67
public sealed override Type MakeGenericType(params Type[] typeArguments) => throw new InvalidOperationException(SR.
Format
(SR.Arg_NotGenericTypeDefinition, this));
System\ThrowHelper.cs (1)
16
return new AmbiguousMatchException(SR.
Format
(SR.Arg_AmbiguousMatchException_RoDefinitionType, roDefinitionType.FullName));