Photon Server API
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
public class ComponentAttribute : Attribute { }
[Component] // ComponentAttribute requires implementing IComponent interface
public class MyComponent : IComponent { }

Constructor & Destructor Documentation

BaseTypeRequiredAttribute.BaseTypeRequiredAttribute ( [NotNull] Type  baseType)
inline

Property Documentation

Type BaseTypeRequiredAttribute.BaseType
get