Files
2026-04-10 22:50:51 +02:00

193 lines
10 KiB
C#

using System;
using System.Collections;
using System.Globalization;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Provides a type converter to convert <see cref="T:System.Enum" /> objects to and from various other representations.</summary>
// Token: 0x02000123 RID: 291
[Token(Token = "0x2000123")]
public class EnumConverter : TypeConverter
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.EnumConverter" /> class for the given type.</summary>
/// <param name="type">A <see cref="T:System.Type" /> that represents the type of enumeration to associate with this enumeration converter.</param>
// Token: 0x06000722 RID: 1826 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000722")]
[Address(RVA = "0x4EAEC0", Offset = "0x4E9CC0", VA = "0x1804EAEC0")]
public EnumConverter(Type type)
{
}
/// <summary>Specifies the type of the enumerator this converter is associated with.</summary>
/// <returns>The type of the enumerator this converter is associated with.</returns>
// Token: 0x17000146 RID: 326
// (get) Token: 0x06000723 RID: 1827 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000146")]
protected Type EnumType
{
[Token(Token = "0x6000723")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return null;
}
}
/// <summary>Gets or sets a <see cref="T:System.ComponentModel.TypeConverter.StandardValuesCollection" /> that specifies the possible values for the enumeration.</summary>
/// <returns>A <see cref="T:System.ComponentModel.TypeConverter.StandardValuesCollection" /> that specifies the possible values for the enumeration.</returns>
// Token: 0x17000147 RID: 327
// (get) Token: 0x06000724 RID: 1828 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000725 RID: 1829 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000147")]
protected TypeConverter.StandardValuesCollection Values
{
[Token(Token = "0x6000724")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
[Token(Token = "0x6000725")]
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
set
{
}
}
/// <summary>Gets a value indicating whether this converter can convert an object in the given source type to an enumeration object 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: 0x06000726 RID: 1830 RVA: 0x00004D40 File Offset: 0x00002F40
[Token(Token = "0x6000726")]
[Address(RVA = "0x4E9940", Offset = "0x4E8740", VA = "0x1804E9940", 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: 0x06000727 RID: 1831 RVA: 0x00004D58 File Offset: 0x00002F58
[Token(Token = "0x6000727")]
[Address(RVA = "0x4E9A30", Offset = "0x4E8830", VA = "0x1804E9A30", Slot = "5")]
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
{
return default(bool);
}
/// <summary>Gets an <see cref="T:System.Collections.IComparer" /> that can be used to sort the values of the enumeration.</summary>
/// <returns>An <see cref="T:System.Collections.IComparer" /> for sorting the enumeration values.</returns>
// Token: 0x17000148 RID: 328
// (get) Token: 0x06000728 RID: 1832 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000148")]
protected virtual IComparer Comparer
{
[Token(Token = "0x6000728")]
[Address(RVA = "0x4EAF30", Offset = "0x4E9D30", VA = "0x1804EAF30", Slot = "16")]
get
{
return null;
}
}
/// <summary>Converts the specified value object to an enumeration object.</summary>
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
/// <param name="culture">An optional <see cref="T:System.Globalization.CultureInfo" />. If not supplied, the current culture is assumed.</param>
/// <param name="value">The <see cref="T:System.Object" /> to convert.</param>
/// <returns>An <see cref="T:System.Object" /> that represents the converted <paramref name="value" />.</returns>
/// <exception cref="T:System.FormatException">
/// <paramref name="value" /> is not a valid value for the target type.</exception>
/// <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
// Token: 0x06000729 RID: 1833 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000729")]
[Address(RVA = "0x4E9B20", Offset = "0x4E8920", VA = "0x1804E9B20", 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">An optional <see cref="T:System.Globalization.CultureInfo" />. If not supplied, the current culture is assumed.</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.ArgumentException">
/// <paramref name="value" /> is not a valid value for the enumeration.</exception>
/// <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
// Token: 0x0600072A RID: 1834 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600072A")]
[Address(RVA = "0x4E9F40", Offset = "0x4E8D40", VA = "0x1804E9F40", Slot = "7")]
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
return null;
}
/// <summary>Gets a collection of standard values for the data type this validator is designed for.</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" /> that holds a standard set of valid values, or <see langword="null" /> if the data type does not support a standard set of values.</returns>
// Token: 0x0600072B RID: 1835 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600072B")]
[Address(RVA = "0x4EAAA0", Offset = "0x4E98A0", VA = "0x1804EAAA0", 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.TypeConverter.GetStandardValues" /> is an exclusive 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" /> if the <see cref="T:System.ComponentModel.TypeConverter.StandardValuesCollection" /> returned from <see cref="M:System.ComponentModel.TypeConverter.GetStandardValues" /> is an exhaustive list of possible values; <see langword="false" /> if other values are possible.</returns>
// Token: 0x0600072C RID: 1836 RVA: 0x00004D70 File Offset: 0x00002F70
[Token(Token = "0x600072C")]
[Address(RVA = "0x4EAA10", Offset = "0x4E9810", VA = "0x1804EAA10", 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.TypeConverter.GetStandardValues" /> should be called to find a common set of values the object supports. This method never returns <see langword="false" />.</returns>
// Token: 0x0600072D RID: 1837 RVA: 0x00004D88 File Offset: 0x00002F88
[Token(Token = "0x600072D")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "14")]
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
{
return default(bool);
}
/// <summary>Gets a value indicating whether the given object value is valid for this type.</summary>
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
/// <param name="value">The <see cref="T:System.Object" /> to test.</param>
/// <returns>
/// <see langword="true" /> if the specified value is valid for this object; otherwise, <see langword="false" />.</returns>
// Token: 0x0600072E RID: 1838 RVA: 0x00004DA0 File Offset: 0x00002FA0
[Token(Token = "0x600072E")]
[Address(RVA = "0x4EAE50", Offset = "0x4E9C50", VA = "0x1804EAE50", Slot = "15")]
public override bool IsValid(ITypeDescriptorContext context, object value)
{
return default(bool);
}
// Token: 0x040004DE RID: 1246
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40004DE")]
private TypeConverter.StandardValuesCollection values;
// Token: 0x040004DF RID: 1247
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40004DF")]
private Type type;
}
}