Class ISetComparableExtensions
- Namespace
- PAC.Interfaces.Extensions
Extension methods for ISetComparable<T>.
public static class ISetComparableExtensions
- Inheritance
-
ISetComparableExtensions
- Inherited Members
Methods
IsProperSubsetOf<T1, T2>(T1, T2)
Whether set as a set is a proper subset of other as a set.
public static bool IsProperSubsetOf<T1, T2>(this T1 set, T2 other) where T1 : ISetComparable<T2>
Parameters
setT1otherT2
Returns
Type Parameters
T1T2
Remarks
Recall that 'set is proper subset of other' means that set is a subset of other, but is not set-equal to
other. In more detail, every element of set is an element of other, ignoring order and duplicate elements, but there is at
least one element of other that is not in set.
- See Also
-
IsSubsetOf(T)SetEquals(T)
IsProperSupersetOf<T1, T2>(T1, T2)
Whether set as a set is a proper superset of other as a set.
public static bool IsProperSupersetOf<T1, T2>(this T1 set, T2 other) where T1 : ISetComparable<T2>
Parameters
setT1otherT2
Returns
Type Parameters
T1T2
Remarks
Recall that 'set is proper superset of other' means that set is a superset of other, but is not set-equal to
other. In more detail, every element of other is an element of set, ignoring order and duplicate elements, but there is at
least one element of set that is not in other.
- See Also
-
IsSubsetOf(T)SetEquals(T)