Show / Hide Table of Contents

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
IParameterSet.SetParameter<P>(string, P)
IParameterSet.TrySetParameter<P>(string, P)
IParameterSet.GetProperty<P>(string)
IParameterSet.TryGetProperty<P>(string, out P)
IParameterSet.CreateParameterSetter<P>(string)
IParameterSet.CreatePropertyGetter<P>(string)
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 null.

Exceptions
Type Condition
ArgumentNullException

Thrown if name is null.

Extension Methods

Utility.ThrowIfNull<T>(T, string)
Documentation.ParameterValues<T>(IParameterSet, bool)
Documentation.Parameters(IParameterSet)
In this article
Back to top Generated by DocFX