C# Class NFluent.EnumerableExtensions

Extension methods for adding new fluent methods to enumerable.
Afficher le fichier Open project: tpierrain/NFluent

Méthodes publiques

Méthode Description
Count ( this enumerable ) : long

Returns the number of items present within the specified enumerable (returns 0 if the enumerable is null).

ToEnumeratedString ( this enumerable ) : string

Return a string containing all the IEnumerable elements, separated by a comma.

ToEnumeratedString ( this enumerable, long &itemsCount ) : string

Return a string containing all the elements of an IEnumerable, separated by a comma.

ToEnumeratedString ( this enumerable, long &itemsCount, string separator ) : string

Return a string containing all the elements of an IEnumerable, separated by a given separator.

ToEnumeratedString ( this enumerable, string separator ) : string

Return a string containing all the elements of an IEnumerable, separated by a given separator.

Method Details

Count() public static méthode

Returns the number of items present within the specified enumerable (returns 0 if the enumerable is null).
public static Count ( this enumerable ) : long
enumerable this The enumerable.
Résultat long

ToEnumeratedString() public static méthode

Return a string containing all the IEnumerable elements, separated by a comma.
public static ToEnumeratedString ( this enumerable ) : string
enumerable this The enumerable to transform into a string.
Résultat string

ToEnumeratedString() public static méthode

Return a string containing all the elements of an IEnumerable, separated by a comma.
public static ToEnumeratedString ( this enumerable, long &itemsCount ) : string
enumerable this The enumerable to transform into a string.
itemsCount long The number of items within the .
Résultat string

ToEnumeratedString() public static méthode

Return a string containing all the elements of an IEnumerable, separated by a given separator.
public static ToEnumeratedString ( this enumerable, long &itemsCount, string separator ) : string
enumerable this The enumerable to transform into a string.
itemsCount long The number of items within the .
separator string The separator.
Résultat string

ToEnumeratedString() public static méthode

Return a string containing all the elements of an IEnumerable, separated by a given separator.
public static ToEnumeratedString ( this enumerable, string separator ) : string
enumerable this The enumerable to transform into a string.
separator string The separator.
Résultat string