scripts
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Resources
|
||||
{
|
||||
/// <summary>Informs the <see cref="T:System.Resources.ResourceManager" /> of the neutral culture of an assembly. This class cannot be inherited.</summary>
|
||||
// Token: 0x02000276 RID: 630
|
||||
[AttributeUsage(AttributeTargets.Assembly)]
|
||||
[ComVisible(true)]
|
||||
public sealed class NeutralResourcesLanguageAttribute : Attribute
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> class.</summary>
|
||||
/// <param name="cultureName">The name of the culture that the current assembly's neutral resources were written in. </param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="cultureName" /> parameter is null. </exception>
|
||||
// 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;
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Resources.NeutralResourcesLanguageAttribute" /> class with the specified ultimate resource fallback location.</summary>
|
||||
/// <param name="cultureName">The name of the culture that the current assembly's neutral resources were written in.</param>
|
||||
/// <param name="location">An <see cref="T:System.Resources.UltimateResourceFallbackLocation" /> enumeration value indicating the location from which to retrieve neutral fallback resources.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="cultureName" /> is null.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="location" /> is not a member of <see cref="T:System.Resources.UltimateResourceFallbackLocation" />.</exception>
|
||||
// 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;
|
||||
}
|
||||
|
||||
/// <summary>Gets the culture name.</summary>
|
||||
/// <returns>A <see cref="T:System.String" /> with the name of the default culture for the main assembly.</returns>
|
||||
// Token: 0x17000605 RID: 1541
|
||||
// (get) Token: 0x06002036 RID: 8246 RVA: 0x00074E2C File Offset: 0x0007302C
|
||||
public string CultureName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.culture;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the location for the <see cref="T:System.Resources.ResourceManager" /> class to use to retrieve neutral resources by using the resource fallback process.</summary>
|
||||
/// <returns>The value of the <see cref="T:System.Resources.UltimateResourceFallbackLocation" /> enumeration that indicates the location (main assembly or satellite) from which to retrieve neutral resources.</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user