Interface IExportPropertySet<P>
An IParameterSet that support exporting or getting their values by specifying the name of the property. All properties are of the same type.
Inherited Members
Namespace: SpiceSharp.ParameterSets
Assembly: SpiceSharp.dll
Syntax
public interface IExportPropertySet<out P> : IParameterSet
Type Parameters
Name | Description |
---|---|
P | The type of the properties. |
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
GetPropertyGetter(string)
Creates a getter for a parameter with the specified name.
Declaration
Func<out P> GetPropertyGetter(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the parameter. |
Returns
Type | Description |
---|---|
Func<P> | A getter for the parameter value if it exists; otherwise |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |