195 lines
10 KiB
C#
195 lines
10 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides a type converter to convert <see cref="T:System.Globalization.CultureInfo" /> objects to and from various other representations.</summary>
|
|
// Token: 0x02000104 RID: 260
|
|
[Token(Token = "0x2000104")]
|
|
public class CultureInfoConverter : TypeConverter
|
|
{
|
|
// Token: 0x17000122 RID: 290
|
|
// (get) Token: 0x0600065B RID: 1627 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000122")]
|
|
private string DefaultCultureString
|
|
{
|
|
[Token(Token = "0x600065B")]
|
|
[Address(RVA = "0x49B7E0", Offset = "0x49A5E0", VA = "0x18049B7E0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Retrieves the name of the specified culture.</summary>
|
|
/// <param name="culture">A <see cref="T:System.Globalization.CultureInfo" /> that specifies the culture to get the name for.</param>
|
|
/// <returns>The name of the specified culture.</returns>
|
|
// Token: 0x0600065C RID: 1628 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600065C")]
|
|
[Address(RVA = "0x49B570", Offset = "0x49A370", VA = "0x18049B570", Slot = "16")]
|
|
protected virtual string GetCultureName(CultureInfo culture)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether this converter can convert an object in the given source type to a <see cref="T:System.Globalization.CultureInfo" /> using the specified context.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="sourceType">A <see cref="T:System.Type" /> that represents the type you wish to convert from.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this converter can perform the conversion; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600065D RID: 1629 RVA: 0x00004740 File Offset: 0x00002940
|
|
[Token(Token = "0x600065D")]
|
|
[Address(RVA = "0x49A8E0", Offset = "0x4996E0", VA = "0x18049A8E0", Slot = "4")]
|
|
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether this converter can convert an object to the given destination type using the context.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="destinationType">A <see cref="T:System.Type" /> that represents the type you wish to convert to.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this converter can perform the conversion; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600065E RID: 1630 RVA: 0x00004758 File Offset: 0x00002958
|
|
[Token(Token = "0x600065E")]
|
|
[Address(RVA = "0x49A990", Offset = "0x499790", VA = "0x18049A990", Slot = "5")]
|
|
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Converts the specified value object to a <see cref="T:System.Globalization.CultureInfo" />.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="culture">A <see cref="T:System.Globalization.CultureInfo" /> that specifies the culture to which to convert.</param>
|
|
/// <param name="value">The <see cref="T:System.Object" /> to convert.</param>
|
|
/// <returns>An <see cref="T:System.Object" /> that represents the converted value.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="value" /> specifies a culture that is not valid.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
|
|
// Token: 0x0600065F RID: 1631 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600065F")]
|
|
[Address(RVA = "0x49AA40", Offset = "0x499840", VA = "0x18049AA40", Slot = "6")]
|
|
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Converts the given value object to the specified destination type.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="culture">A <see cref="T:System.Globalization.CultureInfo" /> that specifies the culture to which to convert.</param>
|
|
/// <param name="value">The <see cref="T:System.Object" /> to convert.</param>
|
|
/// <param name="destinationType">The <see cref="T:System.Type" /> to convert the value to.</param>
|
|
/// <returns>An <see cref="T:System.Object" /> that represents the converted <paramref name="value" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="destinationType" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
|
|
// Token: 0x06000660 RID: 1632 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000660")]
|
|
[Address(RVA = "0x49B0C0", Offset = "0x499EC0", VA = "0x18049B0C0", Slot = "7")]
|
|
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets a collection of standard values for a <see cref="T:System.Globalization.CultureInfo" /> object using the specified context.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <returns>A <see cref="T:System.ComponentModel.TypeConverter.StandardValuesCollection" /> containing a standard set of valid values, or <see langword="null" /> if the data type does not support a standard set of values.</returns>
|
|
// Token: 0x06000661 RID: 1633 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000661")]
|
|
[Address(RVA = "0x49B5A0", Offset = "0x49A3A0", VA = "0x18049B5A0", Slot = "12")]
|
|
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the list of standard values returned from <see cref="M:System.ComponentModel.CultureInfoConverter.GetStandardValues(System.ComponentModel.ITypeDescriptorContext)" /> is an exhaustive list.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <returns>
|
|
/// <see langword="false" /> because the <see cref="T:System.ComponentModel.TypeConverter.StandardValuesCollection" /> returned from <see cref="M:System.ComponentModel.CultureInfoConverter.GetStandardValues(System.ComponentModel.ITypeDescriptorContext)" /> is not an exhaustive list of possible values (that is, other values are possible). This method never returns <see langword="true" />.</returns>
|
|
// Token: 0x06000662 RID: 1634 RVA: 0x00004770 File Offset: 0x00002970
|
|
[Token(Token = "0x6000662")]
|
|
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "13")]
|
|
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether this object supports a standard set of values that can be picked from a list using the specified context.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> because <see cref="M:System.ComponentModel.CultureInfoConverter.GetStandardValues(System.ComponentModel.ITypeDescriptorContext)" /> should be called to find a common set of values the object supports. This method never returns <see langword="false" />.</returns>
|
|
// Token: 0x06000663 RID: 1635 RVA: 0x00004788 File Offset: 0x00002988
|
|
[Token(Token = "0x6000663")]
|
|
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "14")]
|
|
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.CultureInfoConverter" /> class.</summary>
|
|
// Token: 0x06000664 RID: 1636 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000664")]
|
|
[Address(RVA = "0x49B780", Offset = "0x49A580", VA = "0x18049B780")]
|
|
public CultureInfoConverter()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000499 RID: 1177
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000499")]
|
|
private TypeConverter.StandardValuesCollection values;
|
|
|
|
// Token: 0x02000105 RID: 261
|
|
[Token(Token = "0x2000105")]
|
|
private class CultureComparer : IComparer
|
|
{
|
|
// Token: 0x06000665 RID: 1637 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000665")]
|
|
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
|
public CultureComparer(CultureInfoConverter cultureConverter)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000666 RID: 1638 RVA: 0x000047A0 File Offset: 0x000029A0
|
|
[Token(Token = "0x6000666")]
|
|
[Address(RVA = "0x49A700", Offset = "0x499500", VA = "0x18049A700", Slot = "4")]
|
|
public int Compare(object item1, object item2)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x0400049A RID: 1178
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400049A")]
|
|
private CultureInfoConverter converter;
|
|
}
|
|
|
|
// Token: 0x02000106 RID: 262
|
|
[Token(Token = "0x2000106")]
|
|
private static class CultureInfoMapper
|
|
{
|
|
// Token: 0x06000667 RID: 1639 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000667")]
|
|
[Address(RVA = "0x49B810", Offset = "0x49A610", VA = "0x18049B810")]
|
|
public static string GetCultureInfoName(string cultureInfoDisplayName)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000668 RID: 1640 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000668")]
|
|
[Address(RVA = "0x49B8E0", Offset = "0x49A6E0", VA = "0x18049B8E0")]
|
|
private static void InitializeCultureInfoMap()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400049B RID: 1179
|
|
[Token(Token = "0x400049B")]
|
|
private static Dictionary<string, string> cultureInfoNameMap;
|
|
}
|
|
}
|
|
}
|