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

131 lines
5.9 KiB
C#

using System;
using System.Globalization;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Provides a base type converter for nonfloating-point numerical types.</summary>
// Token: 0x020001AA RID: 426
[Token(Token = "0x20001AA")]
public abstract class BaseNumberConverter : TypeConverter
{
// Token: 0x17000225 RID: 549
// (get) Token: 0x06000BB8 RID: 3000 RVA: 0x00006630 File Offset: 0x00004830
[Token(Token = "0x17000225")]
internal virtual bool AllowHex
{
[Token(Token = "0x6000BB8")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "16")]
get
{
return default(bool);
}
}
// Token: 0x17000226 RID: 550
// (get) Token: 0x06000BB9 RID: 3001
[Token(Token = "0x17000226")]
internal abstract Type TargetType
{
[Token(Token = "0x6000BB9")]
[Address(Slot = "17")]
get;
}
// Token: 0x06000BBA RID: 3002
[Token(Token = "0x6000BBA")]
[Address(Slot = "18")]
internal abstract object FromString(string value, int radix);
// Token: 0x06000BBB RID: 3003
[Token(Token = "0x6000BBB")]
[Address(Slot = "19")]
internal abstract object FromString(string value, NumberFormatInfo formatInfo);
// Token: 0x06000BBC RID: 3004
[Token(Token = "0x6000BBC")]
[Address(Slot = "20")]
internal abstract object FromString(string value, CultureInfo culture);
// Token: 0x06000BBD RID: 3005 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000BBD")]
[Address(RVA = "0xB91910", Offset = "0xB90910", VA = "0x180B91910", Slot = "21")]
internal virtual Exception FromStringError(string failedText, Exception innerException)
{
return null;
}
// Token: 0x06000BBE RID: 3006
[Token(Token = "0x6000BBE")]
[Address(Slot = "22")]
internal abstract string ToString(object value, NumberFormatInfo formatInfo);
/// <summary>Determines if this converter can convert an object in the given source type to the native type of the converter.</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 from which you want to convert.</param>
/// <returns>
/// <see langword="true" /> if this converter can perform the operation; otherwise, <see langword="false" />.</returns>
// Token: 0x06000BBF RID: 3007 RVA: 0x00006648 File Offset: 0x00004848
[Token(Token = "0x6000BBF")]
[Address(RVA = "0xB912A0", Offset = "0xB902A0", VA = "0x180B912A0", Slot = "4")]
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
return default(bool);
}
/// <summary>Converts the given object to the converter's native 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 represent the number.</param>
/// <param name="value">The object to convert.</param>
/// <returns>An <see cref="T:System.Object" /> that represents the converted value.</returns>
/// <exception cref="T:System.Exception">
/// <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: 0x06000BC0 RID: 3008 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000BC0")]
[Address(RVA = "0xB91390", Offset = "0xB90390", VA = "0x180B91390", Slot = "6")]
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
return null;
}
/// <summary>Converts the specified object to another 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 represent the number.</param>
/// <param name="value">The object to convert.</param>
/// <param name="destinationType">The type to convert the object to.</param>
/// <returns>An <see cref="T:System.Object" /> that represents the converted 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: 0x06000BC1 RID: 3009 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000BC1")]
[Address(RVA = "0xB91690", Offset = "0xB90690", VA = "0x180B91690", Slot = "7")]
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
return null;
}
/// <summary>Returns 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="t">A <see cref="T:System.Type" /> that represents the type to which you want to convert.</param>
/// <returns>
/// <see langword="true" /> if this converter can perform the operation; otherwise, <see langword="false" />.</returns>
// Token: 0x06000BC2 RID: 3010 RVA: 0x00006660 File Offset: 0x00004860
[Token(Token = "0x6000BC2")]
[Address(RVA = "0xB91350", Offset = "0xB90350", VA = "0x180B91350", Slot = "5")]
public override bool CanConvertTo(ITypeDescriptorContext context, Type t)
{
return default(bool);
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.BaseNumberConverter" /> class.</summary>
// Token: 0x06000BC3 RID: 3011 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000BC3")]
[Address(RVA = "0xB91AD0", Offset = "0xB90AD0", VA = "0x180B91AD0")]
protected BaseNumberConverter()
{
}
}
}