Show / Hide Table of Contents

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
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 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 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)

See Also

IParameterSet
In this article
Back to top Generated by DocFX