Files
Apr2020-Cpp2Il-Dump/System/ComponentModel/ReferenceConverter.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +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: 0x0200017F RID: 383
[Token(Token = "0x200017F")]
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: 0x060009E0 RID: 2528 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60009E0")]
[Address(RVA = "0x4C9520", Offset = "0x4C8320", VA = "0x1804C9520")]
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: 0x060009E1 RID: 2529 RVA: 0x00005FD0 File Offset: 0x000041D0
[Token(Token = "0x60009E1")]
[Address(RVA = "0x4C8A60", Offset = "0x4C7860", VA = "0x1804C8A60", 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: 0x060009E2 RID: 2530 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60009E2")]
[Address(RVA = "0x4C8B10", Offset = "0x4C7910", VA = "0x1804C8B10", 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: 0x060009E3 RID: 2531 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60009E3")]
[Address(RVA = "0x4C8D90", Offset = "0x4C7B90", VA = "0x1804C8D90", 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: 0x060009E4 RID: 2532 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60009E4")]
[Address(RVA = "0x4C8FD0", Offset = "0x4C7DD0", VA = "0x1804C8FD0", 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: 0x060009E5 RID: 2533 RVA: 0x00005FE8 File Offset: 0x000041E8
[Token(Token = "0x60009E5")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", 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: 0x060009E6 RID: 2534 RVA: 0x00006000 File Offset: 0x00004200
[Token(Token = "0x60009E6")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", 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: 0x060009E7 RID: 2535 RVA: 0x00006018 File Offset: 0x00004218
[Token(Token = "0x60009E7")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "16")]
protected virtual bool IsValueAllowed(ITypeDescriptorContext context, object value)
{
return default(bool);
}
// Token: 0x040005AB RID: 1451
[Token(Token = "0x40005AB")]
private static readonly string none;
// Token: 0x040005AC RID: 1452
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40005AC")]
private Type type;
// Token: 0x02000180 RID: 384
[Token(Token = "0x2000180")]
private class ReferenceComparer : IComparer
{
// Token: 0x060009E9 RID: 2537 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60009E9")]
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
public ReferenceComparer(ReferenceConverter converter)
{
}
// Token: 0x060009EA RID: 2538 RVA: 0x00006030 File Offset: 0x00004230
[Token(Token = "0x60009EA")]
[Address(RVA = "0x4C89A0", Offset = "0x4C77A0", VA = "0x1804C89A0", Slot = "4")]
public int Compare(object item1, object item2)
{
return 0;
}
// Token: 0x040005AD RID: 1453
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40005AD")]
private ReferenceConverter converter;
}
}
}