Files
27Aug2021-Cpp2IL-Dump/System/ComponentModel/DateTimeConverter.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x02000109 RID: 265
[Token(Token = "0x2000109")]
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: 0x0600067B RID: 1659 RVA: 0x00004908 File Offset: 0x00002B08
[Token(Token = "0x600067B")]
[Address(RVA = "0xB9B3C0", Offset = "0xB9A3C0", VA = "0x180B9B3C0", 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: 0x0600067C RID: 1660 RVA: 0x00004920 File Offset: 0x00002B20
[Token(Token = "0x600067C")]
[Address(RVA = "0xB9B470", Offset = "0xB9A470", VA = "0x180B9B470", 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: 0x0600067D RID: 1661 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600067D")]
[Address(RVA = "0xB9B520", Offset = "0xB9A520", VA = "0x180B9B520", 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: 0x0600067E RID: 1662 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600067E")]
[Address(RVA = "0xB9B810", Offset = "0xB9A810", VA = "0x180B9B810", 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: 0x0600067F RID: 1663 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600067F")]
[Address(RVA = "0xB9C2C0", Offset = "0xB9B2C0", VA = "0x180B9C2C0")]
public DateTimeConverter()
{
}
}
}