Show / Hide Table of Contents

Class ComponentRuleParameters

Validation parameters for IComponent. This means interconnected entities.

Inheritance
object
ParameterSet
ComponentRuleParameters
Implements
IParameterSet
ICloneable<ComponentRuleParameters>
Inherited Members
ParameterSet.SetParameter<P>(string, P)
ParameterSet.TrySetParameter<P>(string, P)
ParameterSet.GetProperty<P>(string)
ParameterSet.TryGetProperty<P>(string, out P)
ParameterSet.CreateParameterSetter<P>(string)
ParameterSet.CreatePropertyGetter<P>(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public class ComponentRuleParameters : ParameterSet, IParameterSet, ICloneable<ComponentRuleParameters>

Constructors

ComponentRuleParameters(IVariableFactory<IVariable>, IEqualityComparer<string>)

Initializes a new instance of the ComponentRuleParameters class.

Declaration
public ComponentRuleParameters(IVariableFactory<IVariable> factory, IEqualityComparer<string> comparer)
Parameters
Type Name Description
IVariableFactory<IVariable> factory

The variable factory.

IEqualityComparer<string> comparer

The comparer for comparing variable names.

Properties

Comparer

Gets the comparer used to compare variable names.

Declaration
public IEqualityComparer<string> Comparer { get; }
Property Value
Type Description
IEqualityComparer<string>

The comparer.

Factory

Gets the variables.

Declaration
public IVariableFactory<IVariable> Factory { get; }
Property Value
Type Description
IVariableFactory<IVariable>

The variables.

Methods

Clone()

Clones the instance.

Declaration
public ComponentRuleParameters Clone()
Returns
Type Description
ComponentRuleParameters

The cloned instance.

Remarks

We can't really do a deep clone for this. But both the factory and the comparer are supposed to be linking to the same thing anyway.

Implements

IParameterSet
ICloneable<T>

Extension Methods

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

See Also

ParameterSet
In this article
Back to top Generated by DocFX