Table of Contents

Class DeviceTypeDescriptionProvider<TElement>

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

Provides dynamic device description data based on a private or internal Description property. As long as such a property exists, this type description provider will use it to override the default DescriptionAttribute of the class.

public sealed class DeviceTypeDescriptionProvider<TElement> : TypeDescriptionProvider

Type Parameters

TElement

The type of the element on which the attribute is applied.

Inheritance
DeviceTypeDescriptionProvider<TElement>
Inherited Members

Constructors

DeviceTypeDescriptionProvider()

Initializes a new instance of the DeviceTypeDescriptionProvider<TElement> class.

public DeviceTypeDescriptionProvider()

Methods

GetTypeDescriptor(Type, object)

Gets a custom type descriptor for the given type and object.

public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)

Parameters

objectType Type

The type of object for which to retrieve the type descriptor.

instance object

An instance of the type. Can be null if no instance was passed to the type descriptor.

Returns

ICustomTypeDescriptor

An ICustomTypeDescriptor that can provide metadata for the type.