DotNX::Core::Collections Class Reference

Helper functions for generic collections and enumerables. More...

List of all members.

Static Public Member Functions

static int Compare< ElementType > (IEnumerable< ElementType > first, IEnumerable< ElementType > second)
 Comparison for generic enumerables whose elements implement IComparable.
static bool Equals< ElementType > (IEnumerable< ElementType > first, IEnumerable< ElementType > second)
 Equality comparison for enumerables that implement IEquatable.


Detailed Description

Helper functions for generic collections and enumerables.


Member Function Documentation

static int DotNX::Core::Collections::Compare< ElementType > ( IEnumerable< ElementType >  first,
IEnumerable< ElementType >  second 
) [static]

Comparison for generic enumerables whose elements implement IComparable.

Implements lexicographical comparison.

Template Parameters:
ElementType The element type of the enumerables being compared.
Parameters:
first A generic enumerable.
second Another generic enumerable.
Returns:
-1 if the first enumerable is greater, 0 if the two collections are equal, 1 if the second enumerable is greater.
Type Constraints
ElementType :IComparable<ElementType> 

static bool DotNX::Core::Collections::Equals< ElementType > ( IEnumerable< ElementType >  first,
IEnumerable< ElementType >  second 
) [static]

Equality comparison for enumerables that implement IEquatable.

Template Parameters:
ElementType The element type of the enumerables being compared.
Parameters:
first A generic enumerable.
second Another generic enumerable.
Returns:
true if the two enumerables are equal, false otherwise.
Type Constraints
ElementType :IEquatable<ElementType> 


The documentation for this class was generated from the following file:

SourceForge.net Logo
Generated on Sat Oct 18 14:13:25 2008 for .Nick's 0.1.0 by  doxygen 1.5.7.1