Click or drag to resize

BaseTypeRequiredAttribute Class

When applied to a target attribute, specifies a requirement for any type marked with the target attribute to implement or inherit specific type or types.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Ozeki.CommonBaseTypeRequiredAttribute

Namespace: Ozeki.Common
Assembly: OzekiSDK (in OzekiSDK.dll) Version: 10.4.98
Syntax
public sealed class BaseTypeRequiredAttribute : Attribute

The BaseTypeRequiredAttribute type exposes the following members.

Constructors
 NameDescription
Public methodBaseTypeRequiredAttributeInitializes a new instance of the BaseTypeRequiredAttribute class
Top
Properties
 NameDescription
Public propertyBaseType 
Top
Example
[BaseTypeRequired(typeof(IComponent)] // Specify requirement public class ComponentAttribute : Attribute { } [Component] // ComponentAttribute requires implementing IComponent interface public class MyComponent : IComponent { }
See Also