C# Class Itenso.Sys.Collection.CollectionTool

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

Méthodes publiques

Méthode 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 méthode

public static AddHashCode ( int hash, int objHash ) : int
hash int
objHash int
Résultat int

AddHashCode() public static méthode

public static AddHashCode ( int hash, object obj ) : int
hash int
obj object
Résultat int

AreEqual() public static méthode

public static AreEqual ( IEnumerable enumerable, object obj ) : bool
enumerable IEnumerable
obj object
Résultat bool

ComputeHashCode() public static méthode

public static ComputeHashCode ( IEnumerable enumerable ) : int
enumerable IEnumerable
Résultat int

EnumValuesToString() public static méthode

public static EnumValuesToString ( Type enumType ) : string
enumType System.Type
Résultat string

EnumValuesToString() public static méthode

public static EnumValuesToString ( Type enumType, string delimiterText ) : string
enumType System.Type
delimiterText string
Résultat string

EnumValuesToString() public static méthode

public static EnumValuesToString ( Type enumType, string startText, string endText, string delimiterText ) : string
enumType System.Type
startText string
endText string
delimiterText string
Résultat string

HaveSameContents() public static méthode

public static HaveSameContents ( IEnumerable left, IEnumerable right ) : bool
left IEnumerable
right IEnumerable
Résultat bool

ParseEnumValue() public static méthode

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

ToString() public static méthode

public static ToString ( IEnumerable enumerable ) : string
enumerable IEnumerable
Résultat string

ToString() public static méthode

public static ToString ( IEnumerable enumerable, string delimiterText ) : string
enumerable IEnumerable
delimiterText string
Résultat string

ToString() public static méthode

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
Résultat string