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
    Slash.Diagnostics.ReSharper.AnnotationsBaseTypeRequiredAttribute

Namespace: Slash.Diagnostics.ReSharper.Annotations
Assembly: Slash.Diagnostics (in Slash.Diagnostics.dll) Version: 1.0.6018.40181
Syntax
public sealed class BaseTypeRequiredAttribute : Attribute

The BaseTypeRequiredAttribute type exposes the following members.

Constructors
  NameDescription
Public methodBaseTypeRequiredAttribute
Initializes new instance of BaseTypeRequiredAttribute
Top
Properties
  NameDescription
Public propertyBaseTypes
Gets enumerations of specified base types
Top
Examples
[BaseTypeRequired(typeof(IComponent)] // Specify requirement
public class ComponentAttribute : Attribute 
{}

[Component] // ComponentAttribute requires implementing IComponent interface
public class MyComponent : IComponent
{}
See Also