Class BehaviorRequiresAttribute
Indicates that a behavior needs another behavior in order to work.
Inherited Members
Namespace: SpiceSharp.Attributes
Assembly: SpiceSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public class BehaviorRequiresAttribute : Attribute
Constructors
BehaviorRequiresAttribute(Type)
Initializes a new instance of the BehaviorRequiresAttribute class.
Declaration
public BehaviorRequiresAttribute(Type required)
Parameters
Type | Name | Description |
---|---|---|
Type | required | The required type. |
BehaviorRequiresAttribute(Type, Type[])
Initializes a new instance of the BehaviorRequiresAttribute class.
Declaration
public BehaviorRequiresAttribute(Type required, Type[] genericTypeParameters)
Parameters
Type | Name | Description |
---|---|---|
Type | required | The required type. |
Type[] | genericTypeParameters | The generic parameters. |
Properties
GenericTypeParameters
Gets the generic parameters of the behavior.
Declaration
public Type[] GenericTypeParameters { get; }
Property Value
Type | Description |
---|---|
Type[] |
RequiredBehavior
Gets the type of the required behavior.
Declaration
public Type RequiredBehavior { get; }
Property Value
Type | Description |
---|---|
Type | The required behavior type. |