using System;
namespace System.ComponentModel
{
/// Provides a type converter to convert components to and from various other representations.
// Token: 0x02000066 RID: 102
public class ComponentConverter : ReferenceConverter
{
/// Initializes a new instance of the class.
/// A that represents the type to associate with this component converter.
// Token: 0x060003CF RID: 975 RVA: 0x0000B9D4 File Offset: 0x00009BD4
public ComponentConverter(Type type)
: base(type)
{
}
/// Gets a collection of properties for the type of component specified by the value parameter.
/// A with the properties that are exposed for the component, or null if there are no properties.
/// An that provides a format context.
/// An that specifies the type of component to get the properties for.
/// An array of type that will be used as a filter.
// Token: 0x060003D0 RID: 976 RVA: 0x0000B9E0 File Offset: 0x00009BE0
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
{
return TypeDescriptor.GetProperties(value, attributes);
}
/// Gets a value indicating whether this object supports properties using the specified context.
/// true because should be called to find the properties of this object. This method never returns false.
/// An that provides a format context.
// Token: 0x060003D1 RID: 977 RVA: 0x0000B9EC File Offset: 0x00009BEC
public override bool GetPropertiesSupported(ITypeDescriptorContext context)
{
return true;
}
}
}