Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NeutralResourcesLanguageAttribute.cs
Go to the documentation of this file.
1namespace System.Resources;
2
3[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
5{
6 public string CultureName { get; }
7
9
10 public NeutralResourcesLanguageAttribute(string cultureName)
11 {
12 if (cultureName == null)
13 {
14 throw new ArgumentNullException("cultureName");
15 }
16 CultureName = cultureName;
18 }
19
21 {
22 if (cultureName == null)
23 {
24 throw new ArgumentNullException("cultureName");
25 }
26 if (!Enum.IsDefined(typeof(UltimateResourceFallbackLocation), location))
27 {
29 }
30 CultureName = cultureName;
31 Location = location;
32 }
33}
static bool IsDefined(Type enumType, object value)
Definition Enum.cs:359
NeutralResourcesLanguageAttribute(string cultureName, UltimateResourceFallbackLocation location)
static string Arg_InvalidNeutralResourcesLanguage_FallbackLoc
Definition SR.cs:210
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7