Files
27Aug2021-Cpp2IL-Dump/System/ComponentModel/ReferenceConverter.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

149 lines
8.2 KiB
C#

using System;
using System.Collections;
using System.Globalization;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Provides a type converter to convert object references to and from other representations.</summary>
// Token: 0x0200017B RID: 379
[Token(Token = "0x200017B")]
public class ReferenceConverter : TypeConverter
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.ReferenceConverter" /> class.</summary>
/// <param name="type">A <see cref="T:System.Type" /> that represents the type to associate with this reference converter.</param>
// Token: 0x060009CA RID: 2506 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60009CA")]
[Address(RVA = "0xC19320", Offset = "0xC18320", VA = "0x180C19320")]
public ReferenceConverter(Type type)
{
}
/// <summary>Gets a value indicating whether this converter can convert an object in the given source type to a reference object 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: 0x060009CB RID: 2507 RVA: 0x00005FB8 File Offset: 0x000041B8
[Token(Token = "0x60009CB")]
[Address(RVA = "0xC18860", Offset = "0xC17860", VA = "0x180C18860", Slot = "4")]
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
return default(bool);
}
/// <summary>Converts the given object to the reference type.</summary>
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
/// <param name="culture">A <see cref="T:System.Globalization.CultureInfo" /> that specifies the culture used to represent the font.</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: 0x060009CC RID: 2508 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60009CC")]
[Address(RVA = "0xC18910", Offset = "0xC17910", VA = "0x180C18910", Slot = "6")]
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
return null;
}
/// <summary>Converts the given value object to the reference type using the specified context and arguments.</summary>
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
/// <param name="culture">A <see cref="T:System.Globalization.CultureInfo" /> that specifies the culture used to represent the font.</param>
/// <param name="value">The <see cref="T:System.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: 0x060009CD RID: 2509 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60009CD")]
[Address(RVA = "0xC18B90", Offset = "0xC17B90", VA = "0x180C18B90", Slot = "7")]
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
return null;
}
/// <summary>Gets a collection of standard values for the reference data type.</summary>
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
/// <returns>A <see cref="T:System.ComponentModel.TypeConverter.StandardValuesCollection" /> that holds a standard set of valid values, or <see langword="null" /> if the data type does not support a standard set of values.</returns>
// Token: 0x060009CE RID: 2510 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60009CE")]
[Address(RVA = "0xC18DD0", Offset = "0xC17DD0", VA = "0x180C18DD0", Slot = "12")]
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
return null;
}
/// <summary>Gets a value indicating whether the list of standard values returned from <see cref="M:System.ComponentModel.ReferenceConverter.GetStandardValues(System.ComponentModel.ITypeDescriptorContext)" /> is an exclusive list.</summary>
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
/// <returns>
/// <see langword="true" /> because the <see cref="T:System.ComponentModel.TypeConverter.StandardValuesCollection" /> returned from <see cref="M:System.ComponentModel.ReferenceConverter.GetStandardValues(System.ComponentModel.ITypeDescriptorContext)" /> is an exhaustive list of possible values. This method never returns <see langword="false" />.</returns>
// Token: 0x060009CF RID: 2511 RVA: 0x00005FD0 File Offset: 0x000041D0
[Token(Token = "0x60009CF")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "13")]
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
{
return default(bool);
}
/// <summary>Gets a value indicating whether this object supports a standard set of values that can be picked from a list.</summary>
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
/// <returns>
/// <see langword="true" /> because <see cref="M:System.ComponentModel.ReferenceConverter.GetStandardValues(System.ComponentModel.ITypeDescriptorContext)" /> can be called to find a common set of values the object supports. This method never returns <see langword="false" />.</returns>
// Token: 0x060009D0 RID: 2512 RVA: 0x00005FE8 File Offset: 0x000041E8
[Token(Token = "0x60009D0")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "14")]
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
{
return default(bool);
}
/// <summary>Returns a value indicating whether a particular value can be added to the standard values collection.</summary>
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides an additional context.</param>
/// <param name="value">The value to check.</param>
/// <returns>
/// <see langword="true" /> if the value is allowed and can be added to the standard values collection; <see langword="false" /> if the value cannot be added to the standard values collection.</returns>
// Token: 0x060009D1 RID: 2513 RVA: 0x00006000 File Offset: 0x00004200
[Token(Token = "0x60009D1")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "16")]
protected virtual bool IsValueAllowed(ITypeDescriptorContext context, object value)
{
return default(bool);
}
// Token: 0x0400059E RID: 1438
[Token(Token = "0x400059E")]
private static readonly string none;
// Token: 0x0400059F RID: 1439
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400059F")]
private Type type;
// Token: 0x0200017C RID: 380
[Token(Token = "0x200017C")]
private class ReferenceComparer : IComparer
{
// Token: 0x060009D3 RID: 2515 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60009D3")]
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
public ReferenceComparer(ReferenceConverter converter)
{
}
// Token: 0x060009D4 RID: 2516 RVA: 0x00006018 File Offset: 0x00004218
[Token(Token = "0x60009D4")]
[Address(RVA = "0xC187A0", Offset = "0xC177A0", VA = "0x180C187A0", Slot = "4")]
public int Compare(object item1, object item2)
{
return 0;
}
// Token: 0x040005A0 RID: 1440
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40005A0")]
private ReferenceConverter converter;
}
}
}