Class ParameterBehavior<P>
A behavior with the sole purpose of providing a parameter set.
Inherited Members
Namespace: SpiceSharp.Components.Common
Assembly: SpiceSharp.dll
Syntax
[BehaviorFor(typeof(ResistorModel), new Type[] { typeof(ModelParameters) })]
[BehaviorFor(typeof(CapacitorModel), new Type[] { typeof(ModelParameters) })]
public class ParameterBehavior<P> : Behavior, IBehavior, IParameterSetCollection, IParameterSet, IParameterized<P> where P : IParameterSet, ICloneable<P>, new()
Type Parameters
| Name | Description |
|---|---|
| P | The parameter set type. |
Constructors
ParameterBehavior(IBindingContext)
Initializes a new instance of the ParameterBehavior<P> class.
Declaration
public ParameterBehavior(IBindingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IBindingContext | context | The context. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
Properties
Parameters
Gets the parameter set.
Declaration
public P Parameters { get; }
Property Value
| Type | Description |
|---|---|
| P | The parameter set. |