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

81 lines
4.5 KiB
C#

using System;
using System.Globalization;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Provides a type converter to convert <see cref="T:System.TimeSpan" /> objects to and from other representations.</summary>
// Token: 0x0200018F RID: 399
[Token(Token = "0x200018F")]
public class TimeSpanConverter : TypeConverter
{
/// <summary>Gets a value indicating whether this converter can convert an object in the given source type to a <see cref="T:System.TimeSpan" /> 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 converter can perform the conversion; otherwise, <see langword="false" />.</returns>
// Token: 0x06000A84 RID: 2692 RVA: 0x00006270 File Offset: 0x00004470
[Token(Token = "0x6000A84")]
[Address(RVA = "0x4D9600", Offset = "0x4D8400", VA = "0x1804D9600", 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>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="destinationType" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.FormatException">
/// <paramref name="value" /> is not a valid value for the target type.</exception>
// Token: 0x06000A85 RID: 2693 RVA: 0x00006288 File Offset: 0x00004488
[Token(Token = "0x6000A85")]
[Address(RVA = "0x4D96B0", Offset = "0x4D84B0", VA = "0x1804D96B0", Slot = "5")]
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
{
return default(bool);
}
/// <summary>Converts the given object to a <see cref="T:System.TimeSpan" />.</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 value.</returns>
/// <exception cref="T:System.NotSupportedException">The conversion cannot be performed.</exception>
/// <exception cref="T:System.FormatException">
/// <paramref name="value" /> is not a valid value for the target type.</exception>
// Token: 0x06000A86 RID: 2694 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000A86")]
[Address(RVA = "0x4D9790", Offset = "0x4D8590", VA = "0x1804D9790", 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>
// Token: 0x06000A87 RID: 2695 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000A87")]
[Address(RVA = "0x4D99A0", Offset = "0x4D87A0", VA = "0x1804D99A0", 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.TimeSpanConverter" /> class.</summary>
// Token: 0x06000A88 RID: 2696 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000A88")]
[Address(RVA = "0x4D9C60", Offset = "0x4D8A60", VA = "0x1804D9C60")]
public TimeSpanConverter()
{
}
}
}