using System;
using System.Runtime.InteropServices;
namespace System.Resources
{
/// Informs the of the neutral culture of an assembly. This class cannot be inherited.
// Token: 0x02000276 RID: 630
[AttributeUsage(AttributeTargets.Assembly)]
[ComVisible(true)]
public sealed class NeutralResourcesLanguageAttribute : Attribute
{
/// Initializes a new instance of the class.
/// The name of the culture that the current assembly's neutral resources were written in.
/// The parameter is null.
// Token: 0x06002034 RID: 8244 RVA: 0x00074DE4 File Offset: 0x00072FE4
public NeutralResourcesLanguageAttribute(string cultureName)
{
if (cultureName == null)
{
throw new ArgumentNullException("culture is null");
}
this.culture = cultureName;
}
/// Initializes a new instance of the class with the specified ultimate resource fallback location.
/// The name of the culture that the current assembly's neutral resources were written in.
/// An enumeration value indicating the location from which to retrieve neutral fallback resources.
///
/// is null.
///
/// is not a member of .
// Token: 0x06002035 RID: 8245 RVA: 0x00074E04 File Offset: 0x00073004
public NeutralResourcesLanguageAttribute(string cultureName, UltimateResourceFallbackLocation location)
{
if (cultureName == null)
{
throw new ArgumentNullException("culture is null");
}
this.culture = cultureName;
this.loc = location;
}
/// Gets the culture name.
/// A with the name of the default culture for the main assembly.
// Token: 0x17000605 RID: 1541
// (get) Token: 0x06002036 RID: 8246 RVA: 0x00074E2C File Offset: 0x0007302C
public string CultureName
{
get
{
return this.culture;
}
}
/// Gets the location for the class to use to retrieve neutral resources by using the resource fallback process.
/// The value of the enumeration that indicates the location (main assembly or satellite) from which to retrieve neutral resources.
// Token: 0x17000606 RID: 1542
// (get) Token: 0x06002037 RID: 8247 RVA: 0x00074E34 File Offset: 0x00073034
public UltimateResourceFallbackLocation Location
{
get
{
return this.loc;
}
}
// Token: 0x04000B46 RID: 2886
private string culture;
// Token: 0x04000B47 RID: 2887
private UltimateResourceFallbackLocation loc;
}
}