Class GenericRules
A generic rule provider that can have any custom set of rules.
Inherited Members
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public class GenericRules : BaseRules, IRules, IParameterSetCollection, IParameterSet, IEnumerable<IRule>, IEnumerable
Constructors
GenericRules()
Initializes a new instance of the GenericRules class.
Declaration
public GenericRules()
GenericRules(params IRule[])
Initializes a new instance of the GenericRules class.
Declaration
public GenericRules(params IRule[] rules)
Parameters
Type | Name | Description |
---|---|---|
IRule[] | rules | The rules. |
GenericRules(IEnumerable<IRule>)
Initializes a new instance of the GenericRules class.
Declaration
public GenericRules(IEnumerable<IRule> rules)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IRule> | rules | The rules. |
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public override IEnumerator<IRule> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<IRule> | An enumerator that can be used to iterate through the collection. |