BaseTypeRequiredAttribute Class |
Namespace: Slash.Diagnostics.ReSharper.Annotations
The BaseTypeRequiredAttribute type exposes the following members.
Name | Description | |
---|---|---|
BaseTypeRequiredAttribute |
Initializes new instance of BaseTypeRequiredAttribute
|
[BaseTypeRequired(typeof(IComponent)] // Specify requirement public class ComponentAttribute : Attribute {} [Component] // ComponentAttribute requires implementing IComponent interface public class MyComponent : IComponent {}