Machinations

Public Member Functions | Properties | List of all members
BaseTypeRequiredAttribute Class Reference

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. More...

Inheritance diagram for BaseTypeRequiredAttribute:

## Public Member Functions

| BaseTypeRequiredAttribute ([NotNull] Type baseType)

## Properties

Type | BaseType`[get]`

## Detailed Description

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.

[BaseTypeRequired(typeof(IComponent)] // Specify requirement
class ComponentAttribute : Attribute { }
[Component] // ComponentAttribute requires implementing IComponent interface
class MyComponent : IComponent { }

## Constructor & Destructor Documentation

## ◆ BaseTypeRequiredAttribute()

BaseTypeRequiredAttribute.BaseTypeRequiredAttribute | ( | [NotNull] Type | baseType | ) |

## Property Documentation

## ◆ BaseType

Type BaseTypeRequiredAttribute.BaseType

get

The documentation for this class was generated from the following file:

- Properties/Annotations.cs