Files
2026-04-10 22:50:51 +02:00

78 lines
4.6 KiB
C#

using System;
using System.Globalization;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Provides a type converter to convert <see cref="T:System.DateTime" /> objects to and from various other representations.</summary>
// Token: 0x0200010D RID: 269
[Token(Token = "0x200010D")]
public class DateTimeConverter : TypeConverter
{
/// <summary>Gets a value indicating whether this converter can convert an object in the given source type to a <see cref="T:System.DateTime" /> 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 wish to convert from.</param>
/// <returns>
/// <see langword="true" /> if this object can perform the conversion; otherwise, <see langword="false" />.</returns>
// Token: 0x06000691 RID: 1681 RVA: 0x00004920 File Offset: 0x00002B20
[Token(Token = "0x6000691")]
[Address(RVA = "0x49E720", Offset = "0x49D520", VA = "0x18049E720", 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: 0x06000692 RID: 1682 RVA: 0x00004938 File Offset: 0x00002B38
[Token(Token = "0x6000692")]
[Address(RVA = "0x49E7D0", Offset = "0x49D5D0", VA = "0x18049E7D0", Slot = "5")]
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
{
return default(bool);
}
/// <summary>Converts the given value object to a <see cref="T:System.DateTime" />.</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.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: 0x06000693 RID: 1683 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000693")]
[Address(RVA = "0x49E880", Offset = "0x49D680", VA = "0x18049E880", Slot = "6")]
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
return null;
}
/// <summary>Converts the given value object to a <see cref="T:System.DateTime" /> using the arguments.</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>
/// <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 <paramref name="value" />.</returns>
/// <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
// Token: 0x06000694 RID: 1684 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000694")]
[Address(RVA = "0x49EB70", Offset = "0x49D970", VA = "0x18049EB70", 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.DateTimeConverter" /> class.</summary>
// Token: 0x06000695 RID: 1685 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000695")]
[Address(RVA = "0x49F620", Offset = "0x49E420", VA = "0x18049F620")]
public DateTimeConverter()
{
}
}
}