Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Resources/NeutralResourcesLanguageAttribute.cs
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

65 lines
2.5 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Resources
{
/// <summary>Informs the resource manager of an app's default culture. This class cannot be inherited.</summary>
// Token: 0x020001F4 RID: 500
[Token(Token = "0x20001F4")]
[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 <see langword="null" />.</exception>
// Token: 0x06001334 RID: 4916 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001334")]
[Address(RVA = "0x2953CD0", Offset = "0x2952AD0", VA = "0x182953CD0")]
public NeutralResourcesLanguageAttribute(string cultureName)
{
}
/// <summary>Gets the culture name.</summary>
/// <returns>The name of the default culture for the main assembly.</returns>
// Token: 0x170001DD RID: 477
// (get) Token: 0x06001335 RID: 4917 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170001DD")]
public string CultureName
{
[Token(Token = "0x6001335")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
}
/// <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>One of the enumeration values that indicates the location (main assembly or satellite) from which to retrieve neutral resources.</returns>
// Token: 0x170001DE RID: 478
// (get) Token: 0x06001336 RID: 4918 RVA: 0x0000EC58 File Offset: 0x0000CE58
[Token(Token = "0x170001DE")]
public UltimateResourceFallbackLocation Location
{
[Token(Token = "0x6001336")]
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
get
{
return UltimateResourceFallbackLocation.MainAssembly;
}
}
// Token: 0x040009AC RID: 2476
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40009AC")]
private string _culture;
// Token: 0x040009AD RID: 2477
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40009AD")]
private UltimateResourceFallbackLocation _fallbackLoc;
}
}