Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

76 lines
3.9 KiB
C#

using System;
using System.Globalization;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Provides a type converter to convert <see cref="T:System.DateTimeOffset" /> structures to and from various other representations.</summary>
// Token: 0x0200010E RID: 270
[Token(Token = "0x200010E")]
public class DateTimeOffsetConverter : TypeConverter
{
/// <summary>Returns a value that indicates whether an object of the specified source type can be converted to a <see cref="T:System.DateTimeOffset" />.</summary>
/// <param name="context">The date format context.</param>
/// <param name="sourceType">The source type to check.</param>
/// <returns>
/// <see langword="true" /> if the specified type can be converted to a <see cref="T:System.DateTimeOffset" />; otherwise, <see langword="false" />.</returns>
// Token: 0x06000696 RID: 1686 RVA: 0x00004950 File Offset: 0x00002B50
[Token(Token = "0x6000696")]
[Address(RVA = "0x49F680", Offset = "0x49E480", VA = "0x18049F680", Slot = "4")]
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
return default(bool);
}
/// <summary>Returns a value that indicates whether a <see cref="T:System.DateTimeOffset" /> can be converted to an object of the specified type.</summary>
/// <param name="context">The date format context.</param>
/// <param name="destinationType">The destination type to check.</param>
/// <returns>
/// <see langword="true" /> if a <see cref="T:System.DateTimeOffset" /> can be converted to the specified type; otherwise, <see langword="false" />.</returns>
// Token: 0x06000697 RID: 1687 RVA: 0x00004968 File Offset: 0x00002B68
[Token(Token = "0x6000697")]
[Address(RVA = "0x49F730", Offset = "0x49E530", VA = "0x18049F730", Slot = "5")]
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
{
return default(bool);
}
/// <summary>Converts the specified object to a <see cref="T:System.DateTimeOffset" />.</summary>
/// <param name="context">The date format context.</param>
/// <param name="culture">The date culture.</param>
/// <param name="value">The object to be converted.</param>
/// <returns>A <see cref="T:System.DateTimeOffset" /> that represents the specified object.</returns>
/// <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
// Token: 0x06000698 RID: 1688 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000698")]
[Address(RVA = "0x49F7E0", Offset = "0x49E5E0", VA = "0x18049F7E0", Slot = "6")]
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
return null;
}
/// <summary>Converts a <see cref="T:System.DateTimeOffset" /> to an object of the specified type.</summary>
/// <param name="context">The date format context.</param>
/// <param name="culture">The date culture.</param>
/// <param name="value">The <see cref="T:System.DateTimeOffset" /> to be converted.</param>
/// <param name="destinationType">The type to convert to.</param>
/// <returns>An object of the specified type that represents the <see cref="T:System.DateTimeOffset" />.</returns>
/// <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
// Token: 0x06000699 RID: 1689 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000699")]
[Address(RVA = "0x49FAE0", Offset = "0x49E8E0", VA = "0x18049FAE0", 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.DateTimeOffsetConverter" /> class.</summary>
// Token: 0x0600069A RID: 1690 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600069A")]
[Address(RVA = "0x4A06A0", Offset = "0x49F4A0", VA = "0x1804A06A0")]
public DateTimeOffsetConverter()
{
}
}
}