12 instantiations of CultureNotFoundException
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (3)
876throw new CultureNotFoundException(nameof(culture), culture, SR.Argument_CultureNotSupported); 883throw new CultureNotFoundException(nameof(culture), culture, SR.Argument_CultureNotSupportedInInvariantMode); 898throw new CultureNotFoundException(nameof(culture), culture, SR.Argument_CultureNotSupported);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (9)
168throw new CultureNotFoundException(nameof(name), name, GetCultureNotSupportedExceptionMessage()); 205throw new CultureNotFoundException(nameof(culture), culture, SR.Argument_CultureNotSupported); 228throw new CultureNotFoundException(nameof(cultureName), cultureName, GetCultureNotSupportedExceptionMessage()); 1014throw new CultureNotFoundException(nameof(culture), culture, GetCultureNotSupportedExceptionMessage()); 1046throw new CultureNotFoundException(nameof(name), name, GetCultureNotSupportedExceptionMessage()); 1092throw new CultureNotFoundException("name/altName", SR.Format(SR.Argument_OneOfCulturesNotSupported, name, altName)); 1112throw new CultureNotFoundException(nameof(name), name, SR.Format(SR.Argument_InvalidPredefinedCultureName, name)); 1154throw new CultureNotFoundException(nameof(name), SR.Format(SR.Argument_CultureIetfNotSupported, name)); 1162throw new CultureNotFoundException(nameof(name), SR.Format(SR.Argument_CultureIetfNotSupported, name));
20 references to CultureNotFoundException
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
174catch (CultureNotFoundException)
Microsoft.AspNetCore.Mvc.Razor (1)
LanguageViewLocationExpander.cs (1)
68catch (CultureNotFoundException)
Microsoft.Build.Framework (1)
EncodingUtilities.cs (1)
340catch (CultureNotFoundException) { }
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
526catch (CultureNotFoundException)
Microsoft.CodeAnalysis.Features (1)
Completion\PatternMatchHelper.cs (1)
29catch (CultureNotFoundException)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
RoslynRequestExecutionQueue.cs (1)
80catch (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)
359Assert.Throws<CultureNotFoundException>(() => ai.ToAssemblyName());
MetadataReferences\FusionAssemblyIdentityTests.cs (4)
207Assert.Throws<CultureNotFoundException>(() => ToAssemblyName(nameObject)); 211Assert.Throws<CultureNotFoundException>(() => ToAssemblyName(nameObject)); 213Assert.Throws<CultureNotFoundException>(() => new AssemblyName("mscorlib, Version=2.0.0.0, Culture=nonsense")); 214Assert.Throws<CultureNotFoundException>(() => new AssemblyName("mscorlib, Version=2.0.0.0, Culture=null"));
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
410Catch ex As CultureNotFoundException
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Program.cs (1)
43catch (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)
591catch (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)
172catch (CultureNotFoundException)