2using System.Collections.Generic;
42 public override bool Equals(
object obj)
Base class for all types of elements.
Base class for all types of sets.
abstract override int GetHashCode()
Calculates a hash code of the element.
override bool Equals(object obj)
Compares the element to another.
static readonly EmptySet Instance
Instance of the empty set.
override int GetHashCode()
Calculates a hash code of the element.
override string ToString()
override ICollection< IElement > ChildElements
An enumeration of child elements. If the element is a scalar, this property will return null.
override? int Size
Size of set, if finite and known, otherwise null is returned.
override bool Contains(IElement Element)
Checks if the set contains an element.
Basic interface for all types of elements.