Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x0200011F RID: 287
[Token(Token = "0x200011F")]
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: 0x0600070C RID: 1804 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600070C")]
[Address(RVA = "0xC552D0", Offset = "0xC542D0", VA = "0x180C552D0")]
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: 0x17000142 RID: 322
// (get) Token: 0x0600070D RID: 1805 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000142")]
protected Type EnumType
{
[Token(Token = "0x600070D")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
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: 0x17000143 RID: 323
// (get) Token: 0x0600070E RID: 1806 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x0600070F RID: 1807 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000143")]
protected TypeConverter.StandardValuesCollection Values
{
[Token(Token = "0x600070E")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return null;
}
[Token(Token = "0x600070F")]
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
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: 0x06000710 RID: 1808 RVA: 0x00004D28 File Offset: 0x00002F28
[Token(Token = "0x6000710")]
[Address(RVA = "0xC53D50", Offset = "0xC52D50", VA = "0x180C53D50", 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: 0x06000711 RID: 1809 RVA: 0x00004D40 File Offset: 0x00002F40
[Token(Token = "0x6000711")]
[Address(RVA = "0xC53E40", Offset = "0xC52E40", VA = "0x180C53E40", 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: 0x17000144 RID: 324
// (get) Token: 0x06000712 RID: 1810 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000144")]
protected virtual IComparer Comparer
{
[Token(Token = "0x6000712")]
[Address(RVA = "0xC55340", Offset = "0xC54340", VA = "0x180C55340", 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: 0x06000713 RID: 1811 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000713")]
[Address(RVA = "0xC53F30", Offset = "0xC52F30", VA = "0x180C53F30", 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: 0x06000714 RID: 1812 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000714")]
[Address(RVA = "0xC54350", Offset = "0xC53350", VA = "0x180C54350", 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: 0x06000715 RID: 1813 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000715")]
[Address(RVA = "0xC54EB0", Offset = "0xC53EB0", VA = "0x180C54EB0", 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: 0x06000716 RID: 1814 RVA: 0x00004D58 File Offset: 0x00002F58
[Token(Token = "0x6000716")]
[Address(RVA = "0xC54E20", Offset = "0xC53E20", VA = "0x180C54E20", 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: 0x06000717 RID: 1815 RVA: 0x00004D70 File Offset: 0x00002F70
[Token(Token = "0x6000717")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", 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: 0x06000718 RID: 1816 RVA: 0x00004D88 File Offset: 0x00002F88
[Token(Token = "0x6000718")]
[Address(RVA = "0xC55260", Offset = "0xC54260", VA = "0x180C55260", Slot = "15")]
public override bool IsValid(ITypeDescriptorContext context, object value)
{
return default(bool);
}
// Token: 0x040004D1 RID: 1233
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40004D1")]
private TypeConverter.StandardValuesCollection values;
// Token: 0x040004D2 RID: 1234
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40004D2")]
private Type type;
}
}