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

95 lines
4.7 KiB
C#

using System;
using System.Globalization;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Provides a type converter to convert <see cref="T:System.Array" /> objects to and from various other representations.</summary>
// Token: 0x020000DF RID: 223
[Token(Token = "0x20000DF")]
public class ArrayConverter : CollectionConverter
{
/// <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 into which <paramref name="value" /> will be converted.</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 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: 0x0600053F RID: 1343 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600053F")]
[Address(RVA = "0x490900", Offset = "0x48F700", VA = "0x180490900", 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.</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 an array, or <see langword="null" /> if there are no properties.</returns>
// Token: 0x06000540 RID: 1344 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000540")]
[Address(RVA = "0x490C00", Offset = "0x48FA00", VA = "0x180490C00", 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="true" /> because <see cref="M:System.ComponentModel.ArrayConverter.GetProperties(System.ComponentModel.ITypeDescriptorContext,System.Object,System.Attribute[])" /> should be called to find the properties of this object. This method never returns <see langword="false" />.</returns>
// Token: 0x06000541 RID: 1345 RVA: 0x00004158 File Offset: 0x00002358
[Token(Token = "0x6000541")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "11")]
public override bool GetPropertiesSupported(ITypeDescriptorContext context)
{
return default(bool);
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.ArrayConverter" /> class.</summary>
// Token: 0x06000542 RID: 1346 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000542")]
[Address(RVA = "0x490E60", Offset = "0x48FC60", VA = "0x180490E60")]
public ArrayConverter()
{
}
// Token: 0x020000E0 RID: 224
[Token(Token = "0x20000E0")]
private class ArrayPropertyDescriptor : TypeConverter.SimplePropertyDescriptor
{
// Token: 0x06000543 RID: 1347 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000543")]
[Address(RVA = "0x491460", Offset = "0x490260", VA = "0x180491460")]
public ArrayPropertyDescriptor(Type arrayType, Type elementType, int index)
{
}
// Token: 0x06000544 RID: 1348 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000544")]
[Address(RVA = "0x491210", Offset = "0x490010", VA = "0x180491210", Slot = "26")]
public override object GetValue(object instance)
{
return null;
}
// Token: 0x06000545 RID: 1349 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000545")]
[Address(RVA = "0x491310", Offset = "0x490110", VA = "0x180491310", Slot = "30")]
public override void SetValue(object instance, object value)
{
}
// Token: 0x04000431 RID: 1073
[FieldOffset(Offset = "0x98")]
[Token(Token = "0x4000431")]
private int index;
}
}
}