239 lines
14 KiB
C#
239 lines
14 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Globalization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides automatic conversion between a nullable type and its underlying primitive type.</summary>
|
|
// Token: 0x0200016D RID: 365
|
|
[Token(Token = "0x200016D")]
|
|
public class NullableConverter : TypeConverter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.NullableConverter" /> class.</summary>
|
|
/// <param name="type">The specified nullable type.</param>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="type" /> is not a nullable type.</exception>
|
|
// Token: 0x06000935 RID: 2357 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000935")]
|
|
[Address(RVA = "0xC67830", Offset = "0xC66830", VA = "0x180C67830")]
|
|
public NullableConverter(Type type)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns whether this converter can convert an object of the given type to the type of this converter, 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 want to convert from.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this converter can perform the conversion; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06000936 RID: 2358 RVA: 0x00005BB0 File Offset: 0x00003DB0
|
|
[Token(Token = "0x6000936")]
|
|
[Address(RVA = "0xC66E80", Offset = "0xC65E80", VA = "0x180C66E80", Slot = "4")]
|
|
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Converts the given object to the type of this converter, using the specified context and culture information.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="culture">The <see cref="T:System.Globalization.CultureInfo" /> to use as the current culture.</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>
|
|
// Token: 0x06000937 RID: 2359 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000937")]
|
|
[Address(RVA = "0xC67040", Offset = "0xC66040", VA = "0x180C67040", Slot = "6")]
|
|
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns whether this converter can convert the object to the specified type, using the specified 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 want to convert to.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this converter can perform the conversion; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06000938 RID: 2360 RVA: 0x00005BC8 File Offset: 0x00003DC8
|
|
[Token(Token = "0x6000938")]
|
|
[Address(RVA = "0xC66F40", Offset = "0xC65F40", VA = "0x180C66F40", Slot = "5")]
|
|
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Converts the given value object to the specified type, using the specified context and culture information.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="culture">The <see cref="T:System.Globalization.CultureInfo" /> to use as the current culture.</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 parameter to.</param>
|
|
/// <returns>An <see cref="T:System.Object" /> that represents the converted value.</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: 0x06000939 RID: 2361 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000939")]
|
|
[Address(RVA = "0xC67170", Offset = "0xC66170", VA = "0x180C67170", Slot = "7")]
|
|
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Creates an instance of the type that this <see cref="T:System.ComponentModel.TypeConverter" /> is associated with, using the specified context, given a set of property values for the object.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="propertyValues">An <see cref="T:System.Collections.IDictionary" /> of new property values.</param>
|
|
/// <returns>An <see cref="T:System.Object" /> representing the given <see cref="T:System.Collections.IDictionary" />, or <see langword="null" /> if the object cannot be created. This method always returns <see langword="null" />.</returns>
|
|
// Token: 0x0600093A RID: 2362 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600093A")]
|
|
[Address(RVA = "0xC674B0", Offset = "0xC664B0", VA = "0x180C674B0", Slot = "8")]
|
|
public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns whether changing a value on this object requires a call to <see cref="M:System.ComponentModel.TypeConverter.CreateInstance(System.Collections.IDictionary)" /> to create a new value, using the specified context.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if changing a property on this object requires a call to <see cref="M:System.ComponentModel.TypeConverter.CreateInstance(System.Collections.IDictionary)" /> to create a new value; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600093B RID: 2363 RVA: 0x00005BE0 File Offset: 0x00003DE0
|
|
[Token(Token = "0x600093B")]
|
|
[Address(RVA = "0xC674E0", Offset = "0xC664E0", VA = "0x180C674E0", Slot = "9")]
|
|
public override bool GetCreateInstanceSupported(ITypeDescriptorContext context)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="value">An <see cref="T:System.Object" /> that specifies the type of array for which to get properties.</param>
|
|
/// <param name="attributes">An array of type <see cref="T:System.Attribute" /> that is used as a filter.</param>
|
|
/// <returns>A <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> with the properties that are exposed for this data type, or <see langword="null" /> if there are no properties.</returns>
|
|
// Token: 0x0600093C RID: 2364 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600093C")]
|
|
[Address(RVA = "0xC67540", Offset = "0xC66540", VA = "0x180C67540", Slot = "10")]
|
|
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns whether this object supports properties, using the specified context.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <see cref="M:System.ComponentModel.TypeConverter.GetProperties(System.Object)" /> should be called to find the properties of this object; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600093D RID: 2365 RVA: 0x00005BF8 File Offset: 0x00003DF8
|
|
[Token(Token = "0x600093D")]
|
|
[Address(RVA = "0xC67510", Offset = "0xC66510", VA = "0x180C67510", Slot = "11")]
|
|
public override bool GetPropertiesSupported(ITypeDescriptorContext context)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns a collection of standard values for the data type this type converter is designed for when provided with a format context.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context that can be used to extract additional information about the environment from which this converter is invoked. This parameter or properties of this parameter can be <see langword="null" />.</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: 0x0600093E RID: 2366 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600093E")]
|
|
[Address(RVA = "0xC675D0", Offset = "0xC665D0", VA = "0x180C675D0", Slot = "12")]
|
|
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns whether the collection of standard values returned from <see cref="Overload:System.ComponentModel.TypeConverter.GetStandardValues" /> is an exclusive list of possible values, using the specified context.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the <see cref="T:System.ComponentModel.TypeConverter.StandardValuesCollection" /> returned from <see cref="M:System.ComponentModel.TypeConverter.GetStandardValues" /> is an exhaustive list of possible values; <see langword="false" /> if other values are possible.</returns>
|
|
// Token: 0x0600093F RID: 2367 RVA: 0x00005C10 File Offset: 0x00003E10
|
|
[Token(Token = "0x600093F")]
|
|
[Address(RVA = "0xC67570", Offset = "0xC66570", VA = "0x180C67570", Slot = "13")]
|
|
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <see cref="M:System.ComponentModel.TypeConverter.GetStandardValues" /> should be called to find a common set of values the object supports; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06000940 RID: 2368 RVA: 0x00005C28 File Offset: 0x00003E28
|
|
[Token(Token = "0x6000940")]
|
|
[Address(RVA = "0xC675A0", Offset = "0xC665A0", VA = "0x180C675A0", Slot = "14")]
|
|
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns whether the given value object is valid for this type and for the specified context.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="value">The <see cref="T:System.Object" /> to test for validity.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the specified value is valid for this object; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06000941 RID: 2369 RVA: 0x00005C40 File Offset: 0x00003E40
|
|
[Token(Token = "0x6000941")]
|
|
[Address(RVA = "0xC67800", Offset = "0xC66800", VA = "0x180C67800", Slot = "15")]
|
|
public override bool IsValid(ITypeDescriptorContext context, object value)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Gets the nullable type.</summary>
|
|
/// <returns>A <see cref="T:System.Type" /> that represents the nullable type.</returns>
|
|
// Token: 0x170001CA RID: 458
|
|
// (get) Token: 0x06000942 RID: 2370 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170001CA")]
|
|
public Type NullableType
|
|
{
|
|
[Token(Token = "0x6000942")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the underlying type.</summary>
|
|
/// <returns>A <see cref="T:System.Type" /> that represents the underlying type.</returns>
|
|
// Token: 0x170001CB RID: 459
|
|
// (get) Token: 0x06000943 RID: 2371 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170001CB")]
|
|
public Type UnderlyingType
|
|
{
|
|
[Token(Token = "0x6000943")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the underlying type converter.</summary>
|
|
/// <returns>A <see cref="T:System.ComponentModel.TypeConverter" /> that represents the underlying type converter.</returns>
|
|
// Token: 0x170001CC RID: 460
|
|
// (get) Token: 0x06000944 RID: 2372 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170001CC")]
|
|
public TypeConverter UnderlyingTypeConverter
|
|
{
|
|
[Token(Token = "0x6000944")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000578 RID: 1400
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000578")]
|
|
private Type nullableType;
|
|
|
|
// Token: 0x04000579 RID: 1401
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000579")]
|
|
private Type simpleType;
|
|
|
|
// Token: 0x0400057A RID: 1402
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400057A")]
|
|
private TypeConverter simpleTypeConverter;
|
|
}
|
|
}
|