12 instantiations of CultureNotFoundException
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (3)
876
throw new
CultureNotFoundException
(nameof(culture), culture, SR.Argument_CultureNotSupported);
883
throw new
CultureNotFoundException
(nameof(culture), culture, SR.Argument_CultureNotSupportedInInvariantMode);
898
throw new
CultureNotFoundException
(nameof(culture), culture, SR.Argument_CultureNotSupported);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (9)
168
throw new
CultureNotFoundException
(nameof(name), name, GetCultureNotSupportedExceptionMessage());
205
throw new
CultureNotFoundException
(nameof(culture), culture, SR.Argument_CultureNotSupported);
228
throw new
CultureNotFoundException
(nameof(cultureName), cultureName, GetCultureNotSupportedExceptionMessage());
1014
throw new
CultureNotFoundException
(nameof(culture), culture, GetCultureNotSupportedExceptionMessage());
1046
throw new
CultureNotFoundException
(nameof(name), name, GetCultureNotSupportedExceptionMessage());
1092
throw new
CultureNotFoundException
("name/altName", SR.Format(SR.Argument_OneOfCulturesNotSupported, name, altName));
1112
throw new
CultureNotFoundException
(nameof(name), name, SR.Format(SR.Argument_InvalidPredefinedCultureName, name));
1154
throw new
CultureNotFoundException
(nameof(name), SR.Format(SR.Argument_CultureIetfNotSupported, name));
1162
throw new
CultureNotFoundException
(nameof(name), SR.Format(SR.Argument_CultureIetfNotSupported, name));
20 references to CultureNotFoundException
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
174
catch (
CultureNotFoundException
)
Microsoft.AspNetCore.Mvc.Razor (1)
LanguageViewLocationExpander.cs (1)
68
catch (
CultureNotFoundException
)
Microsoft.Build.Framework (1)
EncodingUtilities.cs (1)
340
catch (
CultureNotFoundException
) { }
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
526
catch (
CultureNotFoundException
)
Microsoft.CodeAnalysis.Features (1)
Completion\PatternMatchHelper.cs (1)
29
catch (
CultureNotFoundException
)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
RoslynRequestExecutionQueue.cs (1)
80
catch (
CultureNotFoundException
)
Microsoft.CodeAnalysis.UnitTests (6)
MetadataReferences\AssemblyIdentityExtensions.cs (1)
21
/// <exception cref="System.Globalization.
CultureNotFoundException
">The culture specified in <see cref="AssemblyIdentity.CultureName"/> is not available on the current platform.</exception>
MetadataReferences\AssemblyIdentityTests.cs (1)
359
Assert.Throws<
CultureNotFoundException
>(() => ai.ToAssemblyName());
MetadataReferences\FusionAssemblyIdentityTests.cs (4)
207
Assert.Throws<
CultureNotFoundException
>(() => ToAssemblyName(nameObject));
211
Assert.Throws<
CultureNotFoundException
>(() => ToAssemblyName(nameObject));
213
Assert.Throws<
CultureNotFoundException
>(() => new AssemblyName("mscorlib, Version=2.0.0.0, Culture=nonsense"));
214
Assert.Throws<
CultureNotFoundException
>(() => new AssemblyName("mscorlib, Version=2.0.0.0, Culture=null"));
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
410
Catch ex As
CultureNotFoundException
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Program.cs (1)
43
catch (
CultureNotFoundException
)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
254
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.
CultureNotFoundException
))]
netstandard (1)
netstandard.cs (1)
824
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.
CultureNotFoundException
))]
PresentationFramework (1)
System\Windows\Documents\WinRTSpellerInterop.cs (1)
591
catch (
CultureNotFoundException
)
System.Globalization (1)
System.Globalization.cs (1)
12
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.
CultureNotFoundException
))]
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
225
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.
CultureNotFoundException
))]
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
172
catch (
CultureNotFoundException
)