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.
Namespace:
RingSoft.DbLookup.Controls.WPF.PropertiesAssembly: RingSoft.DbLookup.Controls.WPF (in RingSoft.DbLookup.Controls.WPF.dll)
Syntax
[AttributeUsageAttribute] [BaseTypeRequiredAttribute] public sealed class BaseTypeRequiredAttribute : Attribute
<AttributeUsageAttribute> _ <BaseTypeRequiredAttribute> _ Public NotInheritable Class BaseTypeRequiredAttribute _ Inherits Attribute
[AttributeUsageAttribute] [BaseTypeRequiredAttribute] public ref class BaseTypeRequiredAttribute sealed : public Attribute
Examples
C#
[BaseTypeRequired(typeof(IComponent)] // Specify requirement class ComponentAttribute : Attribute { } [Component] // ComponentAttribute requires implementing IComponent interface class MyComponent : IComponent { }