Show / Hide Table of Contents

Class ParameterBehavior<P>

A behavior with the sole purpose of providing a parameter set.

Inheritance
object
ParameterSet
ParameterSetCollection
Behavior
ParameterBehavior<P>
Implements
IBehavior
IParameterSetCollection
IParameterSet
IParameterized<P>
Inherited Members
Behavior.Name
ParameterSetCollection.GetParameterSet<P>()
ParameterSetCollection.TryGetParameterSet<P>(out P)
ParameterSetCollection.ParameterSets
ParameterSetCollection.SetParameter<P>(string, P)
ParameterSetCollection.TrySetParameter<P>(string, P)
ParameterSetCollection.GetProperty<P>(string)
ParameterSetCollection.TryGetProperty<P>(string, out P)
ParameterSetCollection.CreateParameterSetter<P>(string)
ParameterSetCollection.CreatePropertyGetter<P>(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 context is null.

Properties

Parameters

Gets the parameter set.

Declaration
public P Parameters { get; }
Property Value
Type Description
P

The parameter set.

Implements

IBehavior
IParameterSetCollection
IParameterSet
IParameterized<P>

Extension Methods

Utility.ThrowIfNull<T>(T, string)
Documentation.ParameterValues<T>(IParameterSet, bool)
Documentation.Parameters(IParameterSet)
Documentation.ParameterValues<T>(IParameterSetCollection, bool)
Documentation.Parameters(IParameterSetCollection)

See Also

Behavior
IParameterized<P>
In this article
Back to top Generated by DocFX