131 lines
5.9 KiB
C#
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: 0x020001AE RID: 430
|
|
[Token(Token = "0x20001AE")]
|
|
public abstract class BaseNumberConverter : TypeConverter
|
|
{
|
|
// Token: 0x17000229 RID: 553
|
|
// (get) Token: 0x06000BCE RID: 3022 RVA: 0x00006648 File Offset: 0x00004848
|
|
[Token(Token = "0x17000229")]
|
|
internal virtual bool AllowHex
|
|
{
|
|
[Token(Token = "0x6000BCE")]
|
|
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "16")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700022A RID: 554
|
|
// (get) Token: 0x06000BCF RID: 3023
|
|
[Token(Token = "0x1700022A")]
|
|
internal abstract Type TargetType
|
|
{
|
|
[Token(Token = "0x6000BCF")]
|
|
[Address(Slot = "17")]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x06000BD0 RID: 3024
|
|
[Token(Token = "0x6000BD0")]
|
|
[Address(Slot = "18")]
|
|
internal abstract object FromString(string value, int radix);
|
|
|
|
// Token: 0x06000BD1 RID: 3025
|
|
[Token(Token = "0x6000BD1")]
|
|
[Address(Slot = "19")]
|
|
internal abstract object FromString(string value, NumberFormatInfo formatInfo);
|
|
|
|
// Token: 0x06000BD2 RID: 3026
|
|
[Token(Token = "0x6000BD2")]
|
|
[Address(Slot = "20")]
|
|
internal abstract object FromString(string value, CultureInfo culture);
|
|
|
|
// Token: 0x06000BD3 RID: 3027 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000BD3")]
|
|
[Address(RVA = "0x494B80", Offset = "0x493980", VA = "0x180494B80", Slot = "21")]
|
|
internal virtual Exception FromStringError(string failedText, Exception innerException)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000BD4 RID: 3028
|
|
[Token(Token = "0x6000BD4")]
|
|
[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: 0x06000BD5 RID: 3029 RVA: 0x00006660 File Offset: 0x00004860
|
|
[Token(Token = "0x6000BD5")]
|
|
[Address(RVA = "0x494510", Offset = "0x493310", VA = "0x180494510", 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: 0x06000BD6 RID: 3030 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000BD6")]
|
|
[Address(RVA = "0x494600", Offset = "0x493400", VA = "0x180494600", 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: 0x06000BD7 RID: 3031 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000BD7")]
|
|
[Address(RVA = "0x494900", Offset = "0x493700", VA = "0x180494900", 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: 0x06000BD8 RID: 3032 RVA: 0x00006678 File Offset: 0x00004878
|
|
[Token(Token = "0x6000BD8")]
|
|
[Address(RVA = "0x4945C0", Offset = "0x4933C0", VA = "0x1804945C0", 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: 0x06000BD9 RID: 3033 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BD9")]
|
|
[Address(RVA = "0x494D40", Offset = "0x493B40", VA = "0x180494D40")]
|
|
protected BaseNumberConverter()
|
|
{
|
|
}
|
|
}
|
|
}
|