using System; using System.Collections; using System.Globalization; namespace System.ComponentModel { /// Provides a type converter to convert collection objects to and from various other representations. // Token: 0x02000063 RID: 99 public class CollectionConverter : TypeConverter { /// Converts the given value object to the specified destination type. /// An that represents the converted value. /// An that provides a format context. /// The culture to which will be converted. /// The to convert. This parameter must inherit from . /// The to convert the value to. /// /// is null. /// The conversion cannot be performed. // Token: 0x060003BA RID: 954 RVA: 0x0000B700 File Offset: 0x00009900 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string) && value != null && value is ICollection) { return "(Collection)"; } return base.ConvertTo(context, culture, value, destinationType); } /// Gets a collection of properties for the type of array specified by the value parameter using the specified context and attributes. /// A with the properties that are exposed for this data type, or null if there are no properties. This method always returns null. /// An that provides a format context. /// An that specifies the type of array to get the properties for. /// An array of type that will be used as a filter. // Token: 0x060003BB RID: 955 RVA: 0x0000B738 File Offset: 0x00009938 public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { return null; } /// Gets a value indicating whether this object supports properties. /// false because should not be called to find the properties of this object. This method never returns true. /// An that provides a format context. // Token: 0x060003BC RID: 956 RVA: 0x0000B73C File Offset: 0x0000993C public override bool GetPropertiesSupported(ITypeDescriptorContext context) { return false; } } }