C# Class Itenso.Sys.Collection.CollectionTool

Some utility methods for collections.
Just a container for some static methods which make life somewhat easier.
Exibir arquivo Open project: Shereef/RTF-to-HTML-Converter-Class-Library-DLL Class Usage Examples

Public Methods

Method Description
AddHashCode ( int hash, int objHash ) : int
AddHashCode ( int hash, object obj ) : int
AreEqual ( IEnumerable enumerable, object obj ) : bool
ComputeHashCode ( IEnumerable enumerable ) : int
EnumValuesToString ( Type enumType ) : string
EnumValuesToString ( Type enumType, string delimiterText ) : string
EnumValuesToString ( Type enumType, string startText, string endText, string delimiterText ) : string
HaveSameContents ( IEnumerable left, IEnumerable right ) : bool
ParseEnumValue ( Type enumType, string value, bool ignoreCase ) : int
ToString ( IEnumerable enumerable ) : string
ToString ( IEnumerable enumerable, string delimiterText ) : string
ToString ( IEnumerable enumerable, string startText, string endText, string delimiterText, string undefinedValueText ) : string

conventiently concatenates the given items to a string for debugging purposes.

the whole collection is embraced with square brackets and the individual items are separated by a comma. null items will be displayed as 'null' instead of the empty string.

Method Details

AddHashCode() public static method

public static AddHashCode ( int hash, int objHash ) : int
hash int
objHash int
return int

AddHashCode() public static method

public static AddHashCode ( int hash, object obj ) : int
hash int
obj object
return int

AreEqual() public static method

public static AreEqual ( IEnumerable enumerable, object obj ) : bool
enumerable IEnumerable
obj object
return bool

ComputeHashCode() public static method

public static ComputeHashCode ( IEnumerable enumerable ) : int
enumerable IEnumerable
return int

EnumValuesToString() public static method

public static EnumValuesToString ( Type enumType ) : string
enumType System.Type
return string

EnumValuesToString() public static method

public static EnumValuesToString ( Type enumType, string delimiterText ) : string
enumType System.Type
delimiterText string
return string

EnumValuesToString() public static method

public static EnumValuesToString ( Type enumType, string startText, string endText, string delimiterText ) : string
enumType System.Type
startText string
endText string
delimiterText string
return string

HaveSameContents() public static method

public static HaveSameContents ( IEnumerable left, IEnumerable right ) : bool
left IEnumerable
right IEnumerable
return bool

ParseEnumValue() public static method

public static ParseEnumValue ( Type enumType, string value, bool ignoreCase ) : int
enumType System.Type
value string
ignoreCase bool
return int

ToString() public static method

public static ToString ( IEnumerable enumerable ) : string
enumerable IEnumerable
return string

ToString() public static method

public static ToString ( IEnumerable enumerable, string delimiterText ) : string
enumerable IEnumerable
delimiterText string
return string

ToString() public static method

conventiently concatenates the given items to a string for debugging purposes.
the whole collection is embraced with square brackets and the individual items are separated by a comma. null items will be displayed as 'null' instead of the empty string.
public static ToString ( IEnumerable enumerable, string startText, string endText, string delimiterText, string undefinedValueText ) : string
enumerable IEnumerable the collection of items to print
startText string the starting text
endText string the ending textrint
delimiterText string the item delimiter text
undefinedValueText string text for undefined values
return string