Files
Aug2021-Cpp2IL-Dump/System/ComponentModel/GuidConverter.cs
T
2026-04-10 22:50:51 +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: 0x0200012B RID: 299
[Token(Token = "0x200012B")]
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: 0x0600077F RID: 1919 RVA: 0x00004F68 File Offset: 0x00003168
[Token(Token = "0x600077F")]
[Address(RVA = "0x4ED8F0", Offset = "0x4EC6F0", VA = "0x1804ED8F0", 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: 0x06000780 RID: 1920 RVA: 0x00004F80 File Offset: 0x00003180
[Token(Token = "0x6000780")]
[Address(RVA = "0x4ED9A0", Offset = "0x4EC7A0", VA = "0x1804ED9A0", 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: 0x06000781 RID: 1921 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000781")]
[Address(RVA = "0x4EDA50", Offset = "0x4EC850", VA = "0x1804EDA50", 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: 0x06000782 RID: 1922 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000782")]
[Address(RVA = "0x4EDB30", Offset = "0x4EC930", VA = "0x1804EDB30", 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: 0x06000783 RID: 1923 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000783")]
[Address(RVA = "0x4EDE10", Offset = "0x4ECC10", VA = "0x1804EDE10")]
public GuidConverter()
{
}
}
}