C# Class NFluent.EnumerableExtensions

Extension methods for adding new fluent methods to enumerable.
Mostrar archivo Open project: tpierrain/NFluent

Public Methods

Method 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 method

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.
return long

ToEnumeratedString() public static method

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.
return string

ToEnumeratedString() public static method

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 .
return string

ToEnumeratedString() public static method

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.
return string

ToEnumeratedString() public static method

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.
return string