fCraft  0.638
Custom Minecraft Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events
fCraft.EnumerableUtil Class Reference

Provides methods JoinToString/JoinToClassyString methods for merging lists and enumerations into strings. More...

Static Public Member Functions

static string JoinToString< T > ([NotNull] this IEnumerable< T > items)
 Joins all items in a collection into one comma-separated string. If the items are not strings, .ToString() is called on them.
 
static string JoinToString< T > ([NotNull] this IEnumerable< T > items,[NotNull] string separator)
 Joins all items in a collection into one string separated with the given separator. If the items are not strings, .ToString() is called on them.
 
static string JoinToString< T > ([NotNull] this IEnumerable< T > items,[NotNull] Func< T, string > stringConversionFunction)
 Joins all items in a collection into one string separated with the given separator. A specified string conversion function is called on each item before contactenation.
 
static string JoinToString< T > ([NotNull] this IEnumerable< T > items,[NotNull] string separator,[NotNull] Func< T, string > stringConversionFunction)
 Joins all items in a collection into one string separated with the given separator. A specified string conversion function is called on each item before contactenation.
 
static string JoinToClassyString ([NotNull] this IEnumerable< IClassy > items)
 Joins formatted names of all IClassy objects in a collection into one comma-separated string.
 

Detailed Description

Provides methods JoinToString/JoinToClassyString methods for merging lists and enumerations into strings.

Member Function Documentation

static string fCraft.EnumerableUtil.JoinToClassyString ( [NotNull] this IEnumerable< IClassy items)
static

Joins formatted names of all IClassy objects in a collection into one comma-separated string.

static string fCraft.EnumerableUtil.JoinToString< T > ( [NotNull] this IEnumerable< T >  items)
static

Joins all items in a collection into one comma-separated string. If the items are not strings, .ToString() is called on them.

static string fCraft.EnumerableUtil.JoinToString< T > ( [NotNull] this IEnumerable< T >  items,
[NotNull] string  separator 
)
static

Joins all items in a collection into one string separated with the given separator. If the items are not strings, .ToString() is called on them.

static string fCraft.EnumerableUtil.JoinToString< T > ( [NotNull] this IEnumerable< T >  items,
[NotNull] Func< T, string >  stringConversionFunction 
)
static

Joins all items in a collection into one string separated with the given separator. A specified string conversion function is called on each item before contactenation.

static string fCraft.EnumerableUtil.JoinToString< T > ( [NotNull] this IEnumerable< T >  items,
[NotNull] string  separator,
[NotNull] Func< T, string >  stringConversionFunction 
)
static

Joins all items in a collection into one string separated with the given separator. A specified string conversion function is called on each item before contactenation.


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