Class AddBehaviorIfNoAttribute
Indicates that a behavior can be created if the specified behavior type is requested by the simulation, and if it wasn't created before.
Inherited Members
Namespace: SpiceSharp.Attributes
Assembly: SpiceSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class AddBehaviorIfNoAttribute : Attribute
Constructors
AddBehaviorIfNoAttribute(Type)
Initializes a new instance of the AddBehaviorIfNoAttribute class.
Declaration
public AddBehaviorIfNoAttribute(Type target)
Parameters
Type | Name | Description |
---|---|---|
Type | target | The target behavior. |
Properties
Target
Gets the target behavior type that needs to be checked.
Declaration
public Type Target { get; }
Property Value
Type | Description |
---|---|
Type | The target type. |