Files
27Aug2021-Cpp2IL-Dump/System/ComponentModel/GuidConverter.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

78 lines
4.2 KiB
C#

using System;
using System.Globalization;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Provides a type converter to convert <see cref="T:System.Guid" /> objects to and from various other representations.</summary>
// Token: 0x02000127 RID: 295
[Token(Token = "0x2000127")]
public class GuidConverter : TypeConverter
{
/// <summary>Gets a value indicating whether this converter can convert an object in the given source type to a GUID object using the 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: 0x06000769 RID: 1897 RVA: 0x00004F50 File Offset: 0x00003150
[Token(Token = "0x6000769")]
[Address(RVA = "0xC57CF0", Offset = "0xC56CF0", VA = "0x180C57CF0", 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: 0x0600076A RID: 1898 RVA: 0x00004F68 File Offset: 0x00003168
[Token(Token = "0x600076A")]
[Address(RVA = "0xC57DA0", Offset = "0xC56DA0", VA = "0x180C57DA0", Slot = "5")]
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
{
return default(bool);
}
/// <summary>Converts the given object to a GUID 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.NotSupportedException">The conversion cannot be performed.</exception>
// Token: 0x0600076B RID: 1899 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600076B")]
[Address(RVA = "0xC57E50", Offset = "0xC56E50", VA = "0x180C57E50", Slot = "6")]
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
return null;
}
/// <summary>Converts the given object to another type.</summary>
/// <param name="context">A formatter context.</param>
/// <param name="culture">The culture into which <paramref name="value" /> will be converted.</param>
/// <param name="value">The object to convert.</param>
/// <param name="destinationType">The type to convert the object to.</param>
/// <returns>The converted object.</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: 0x0600076C RID: 1900 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600076C")]
[Address(RVA = "0xC57F30", Offset = "0xC56F30", VA = "0x180C57F30", Slot = "7")]
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
return null;
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.GuidConverter" /> class.</summary>
// Token: 0x0600076D RID: 1901 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600076D")]
[Address(RVA = "0xC58210", Offset = "0xC57210", VA = "0x180C58210")]
public GuidConverter()
{
}
}
}