Show / Hide Table of Contents

Class Group

A group of variables.

Inheritance
object
Group
Implements
IEnumerable<IVariable>
IEnumerable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SpiceSharp.Validation.Components
Assembly: SpiceSharp.dll
Syntax
public class Group : IEnumerable<IVariable>, IEnumerable

Constructors

Group(IVariable, params IVariable[])

Initializes a new instance of the Group class.

Declaration
public Group(IVariable first, params IVariable[] variables)
Parameters
Type Name Description
IVariable first

The first variable.

IVariable[] variables

Any other variables in the group.

Properties

Count

Gets the number of nodes.

Declaration
public int Count { get; }
Property Value
Type Description
int

The count.

Methods

Add(IVariable)

Adds the specified variable.

Declaration
public void Add(IVariable variable)
Parameters
Type Name Description
IVariable variable

The variable.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<IVariable> GetEnumerator()
Returns
Type Description
IEnumerator<IVariable>

An enumerator that can be used to iterate through the collection.

Join(Group)

Joins the specified group.

Declaration
public void Join(Group group)
Parameters
Type Name Description
Group group

The group.

Implements

IEnumerable<T>
IEnumerable

Extension Methods

Utility.ThrowIfNull<T>(T, string)
Utility.ThrowIfEmpty<T>(IEnumerable<T>, string)

See Also

IEnumerable<T>
In this article
Back to top Generated by DocFX