87 lines
5.2 KiB
C#
87 lines
5.2 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Globalization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>Converts a <see cref="T:System.String" /> type to a <see cref="T:System.Uri" /> type, and vice versa.</summary>
|
|
// Token: 0x02000098 RID: 152
|
|
[Token(Token = "0x2000098")]
|
|
public class UriTypeConverter : TypeConverter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriTypeConverter" /> class.</summary>
|
|
// Token: 0x060002ED RID: 749 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60002ED")]
|
|
[Address(RVA = "0x11DD080", Offset = "0x11DC080", VA = "0x1811DD080")]
|
|
public UriTypeConverter()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060002EE RID: 750 RVA: 0x00003258 File Offset: 0x00001458
|
|
[Token(Token = "0x60002EE")]
|
|
[Address(RVA = "0x11DCBB0", Offset = "0x11DBBB0", VA = "0x1811DCBB0")]
|
|
private bool CanConvert(Type type)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns whether this converter can convert an object of the given type to the type of this 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 that you want to convert from.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="sourceType" /> is a <see cref="T:System.String" /> type or a <see cref="T:System.Uri" /> type can be assigned from <paramref name="sourceType" />; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="sourceType" /> parameter is <see langword="null" />.</exception>
|
|
// Token: 0x060002EF RID: 751 RVA: 0x00003270 File Offset: 0x00001470
|
|
[Token(Token = "0x60002EF")]
|
|
[Address(RVA = "0x11DCA80", Offset = "0x11DBA80", VA = "0x1811DCA80", Slot = "4")]
|
|
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns whether this converter can convert the object to the specified type, using the specified 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 that you want to convert to.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="destinationType" /> is of type <see cref="T:System.ComponentModel.Design.Serialization.InstanceDescriptor" />, <see cref="T:System.String" />, or <see cref="T:System.Uri" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060002F0 RID: 752 RVA: 0x00003288 File Offset: 0x00001488
|
|
[Token(Token = "0x60002F0")]
|
|
[Address(RVA = "0x11DCB30", Offset = "0x11DBB30", VA = "0x1811DCB30", Slot = "5")]
|
|
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Converts the given object to the type of this converter, using the specified context and culture information.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="culture">The <see cref="T:System.Globalization.CultureInfo" /> to use as the current culture.</param>
|
|
/// <param name="value">The <see cref="T:System.Object" /> to convert.</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: 0x060002F1 RID: 753 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60002F1")]
|
|
[Address(RVA = "0x11DCC80", Offset = "0x11DBC80", VA = "0x1811DCC80", Slot = "6")]
|
|
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Converts a given value object to the specified type, using the specified context and culture information.</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" />. If <see langword="null" /> is passed, 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 <paramref name="value" /> parameter to.</param>
|
|
/// <returns>An <see cref="T:System.Object" /> that represents the converted value.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="destinationType" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
|
|
// Token: 0x060002F2 RID: 754 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60002F2")]
|
|
[Address(RVA = "0x11DCE30", Offset = "0x11DBE30", VA = "0x1811DCE30", Slot = "7")]
|
|
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|