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.DataEntryControls.Engine.AnnotationsAssembly: RingSoft.DataEntryControls.Engine (in RingSoft.DataEntryControls.Engine.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 { }