63 lines
3.9 KiB
C#
63 lines
3.9 KiB
C#
using System;
|
|
using System.Globalization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides a type converter to convert collection objects to and from various other representations.</summary>
|
|
// Token: 0x020000F6 RID: 246
|
|
[Token(Token = "0x20000F6")]
|
|
public class CollectionConverter : TypeConverter
|
|
{
|
|
/// <summary>Converts the given value object to the specified destination type.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <param name="culture">The culture to which <paramref name="value" /> will be converted.</param>
|
|
/// <param name="value">The <see cref="T:System.Object" /> to convert. This parameter must inherit from <see cref="T:System.Collections.ICollection" />.</param>
|
|
/// <param name="destinationType">The <see cref="T:System.Type" /> to convert the value 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: 0x06000604 RID: 1540 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000604")]
|
|
[Address(RVA = "0xB94320", Offset = "0xB93320", VA = "0x180B94320", Slot = "7")]
|
|
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets 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 to get the properties for.</param>
|
|
/// <param name="attributes">An array of type <see cref="T:System.Attribute" /> that will be 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. This method always returns <see langword="null" />.</returns>
|
|
// Token: 0x06000605 RID: 1541 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000605")]
|
|
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "10")]
|
|
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether this object supports properties.</summary>
|
|
/// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context.</param>
|
|
/// <returns>
|
|
/// <see langword="false" /> because <see cref="M:System.ComponentModel.CollectionConverter.GetProperties(System.ComponentModel.ITypeDescriptorContext,System.Object,System.Attribute[])" /> should not be called to find the properties of this object. This method never returns <see langword="true" />.</returns>
|
|
// Token: 0x06000606 RID: 1542 RVA: 0x00004668 File Offset: 0x00002868
|
|
[Token(Token = "0x6000606")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "11")]
|
|
public override bool GetPropertiesSupported(ITypeDescriptorContext context)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.CollectionConverter" /> class.</summary>
|
|
// Token: 0x06000607 RID: 1543 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000607")]
|
|
[Address(RVA = "0xB8DC40", Offset = "0xB8CC40", VA = "0x180B8DC40")]
|
|
public CollectionConverter()
|
|
{
|
|
}
|
|
}
|
|
}
|