RingSoft.DataEntryControls.Engine.Annotations Namespace
RingSoft.DataEntryControls.WPF Namespace

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.Annotations
Assembly:  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 { }

Inheritance Hierarchy


Object
  Attribute
    RingSoft.DataEntryControls.Engine.Annotations..::..BaseTypeRequiredAttribute