65 lines
3.6 KiB
C#
65 lines
3.6 KiB
C#
using System;
|
|
using System.Globalization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides a type converter to convert Unicode character objects to and from various other representations.</summary>
|
|
// Token: 0x020000F2 RID: 242
|
|
[Token(Token = "0x20000F2")]
|
|
public class CharConverter : TypeConverter
|
|
{
|
|
/// <summary>Gets a value indicating whether this converter can convert an object in the given source type to a Unicode character 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 want to convert from.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this converter can perform the conversion; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060005F9 RID: 1529 RVA: 0x00004638 File Offset: 0x00002838
|
|
[Token(Token = "0x60005F9")]
|
|
[Address(RVA = "0xB93EE0", Offset = "0xB92EE0", VA = "0x180B93EE0", Slot = "4")]
|
|
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Converts the given value object to a Unicode character object using the arguments.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="culture">The culture into which <paramref name="value" /> will be converted.</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 value.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
|
|
// Token: 0x060005FA RID: 1530 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60005FA")]
|
|
[Address(RVA = "0xB94130", Offset = "0xB93130", VA = "0x180B94130", Slot = "7")]
|
|
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Converts the given object to a Unicode character object.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="culture">The culture into which <paramref name="value" /> will be converted.</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: 0x060005FB RID: 1531 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60005FB")]
|
|
[Address(RVA = "0xB93F90", Offset = "0xB92F90", VA = "0x180B93F90", Slot = "6")]
|
|
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.CharConverter" /> class.</summary>
|
|
// Token: 0x060005FC RID: 1532 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60005FC")]
|
|
[Address(RVA = "0xB94240", Offset = "0xB93240", VA = "0x180B94240")]
|
|
public CharConverter()
|
|
{
|
|
}
|
|
}
|
|
}
|