Interface IImportParameterSet<P>
An IParameterSet that supports importing or setting parameters by specifying the name of the parameter. All parameters are of the same type.
Inherited Members
Namespace: SpiceSharp.ParameterSets
Assembly: SpiceSharp.dll
Syntax
public interface IImportParameterSet<in P> : IParameterSet
Type Parameters
| Name | Description |
|---|---|
| P | The type of the parameter values. |
Remarks
Properties can be named using the ParameterNameAttribute. This interface can be used to link the names to these properties. The recomended way to implement it is through the Spice# source generator.
Methods
GetParameterSetter(string)
Creates a setter for a parameter with the specified name.
Declaration
Action<in P> GetParameterSetter(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the parameter. |
Returns
| Type | Description |
|---|---|
| Action<P> | A setter if the parameter exists; otherwise |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |