Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

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: 0x02000100 RID: 256
[Token(Token = "0x2000100")]
public class CultureInfoConverter : TypeConverter
{
// Token: 0x1700011E RID: 286
// (get) Token: 0x06000645 RID: 1605 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700011E")]
private string DefaultCultureString
{
[Token(Token = "0x6000645")]
[Address(RVA = "0xB984A0", Offset = "0xB974A0", VA = "0x180B984A0")]
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: 0x06000646 RID: 1606 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000646")]
[Address(RVA = "0xB98230", Offset = "0xB97230", VA = "0x180B98230", 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: 0x06000647 RID: 1607 RVA: 0x00004728 File Offset: 0x00002928
[Token(Token = "0x6000647")]
[Address(RVA = "0xB975A0", Offset = "0xB965A0", VA = "0x180B975A0", 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: 0x06000648 RID: 1608 RVA: 0x00004740 File Offset: 0x00002940
[Token(Token = "0x6000648")]
[Address(RVA = "0xB97650", Offset = "0xB96650", VA = "0x180B97650", 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: 0x06000649 RID: 1609 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000649")]
[Address(RVA = "0xB97700", Offset = "0xB96700", VA = "0x180B97700", 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: 0x0600064A RID: 1610 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600064A")]
[Address(RVA = "0xB97D80", Offset = "0xB96D80", VA = "0x180B97D80", 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: 0x0600064B RID: 1611 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600064B")]
[Address(RVA = "0xB98260", Offset = "0xB97260", VA = "0x180B98260", 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: 0x0600064C RID: 1612 RVA: 0x00004758 File Offset: 0x00002958
[Token(Token = "0x600064C")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", 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: 0x0600064D RID: 1613 RVA: 0x00004770 File Offset: 0x00002970
[Token(Token = "0x600064D")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", 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: 0x0600064E RID: 1614 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600064E")]
[Address(RVA = "0xB98440", Offset = "0xB97440", VA = "0x180B98440")]
public CultureInfoConverter()
{
}
// Token: 0x0400048C RID: 1164
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400048C")]
private TypeConverter.StandardValuesCollection values;
// Token: 0x02000101 RID: 257
[Token(Token = "0x2000101")]
private class CultureComparer : IComparer
{
// Token: 0x0600064F RID: 1615 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600064F")]
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
public CultureComparer(CultureInfoConverter cultureConverter)
{
}
// Token: 0x06000650 RID: 1616 RVA: 0x00004788 File Offset: 0x00002988
[Token(Token = "0x6000650")]
[Address(RVA = "0xB973C0", Offset = "0xB963C0", VA = "0x180B973C0", Slot = "4")]
public int Compare(object item1, object item2)
{
return 0;
}
// Token: 0x0400048D RID: 1165
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400048D")]
private CultureInfoConverter converter;
}
// Token: 0x02000102 RID: 258
[Token(Token = "0x2000102")]
private static class CultureInfoMapper
{
// Token: 0x06000651 RID: 1617 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000651")]
[Address(RVA = "0xB984D0", Offset = "0xB974D0", VA = "0x180B984D0")]
public static string GetCultureInfoName(string cultureInfoDisplayName)
{
return null;
}
// Token: 0x06000652 RID: 1618 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000652")]
[Address(RVA = "0xB985A0", Offset = "0xB975A0", VA = "0x180B985A0")]
private static void InitializeCultureInfoMap()
{
}
// Token: 0x0400048E RID: 1166
[Token(Token = "0x400048E")]
private static Dictionary<string, string> cultureInfoNameMap;
}
}
}