Files
2026-06-04 11:42:34 +02:00

38 lines
2.2 KiB
C#

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