Class Behavior
A base template for an IBehavior.
Inheritance
Behavior
Inherited Members
Namespace: SpiceSharp.Behaviors
Assembly: SpiceSharp.dll
Syntax
public abstract class Behavior : ParameterSetCollection, IBehavior, IParameterSetCollection, IParameterSet
Remarks
This class also allows the behavior to define its own named parameters and properties, as well as link to existing IParameterSet classes.
Constructors
Behavior(IBindingContext)
Initializes a new instance of the Behavior class.
Declaration
protected Behavior(IBindingContext context)
Parameters
Type | Name | Description |
---|---|---|
IBindingContext | context | The context. |
Behavior(string)
Initializes a new instance of the Behavior class.
Declaration
protected Behavior(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the behavior. |
Remarks
The name of the behavior should be the same as that of the entity creating it.
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Properties
Name
Gets the name of the behavior.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string | The name of the behavior. |
Remarks
This is typically the name of the entity that created it.