Class Extensions
Extends some ineditable types "overloading" their methods.
Inherited Members
Namespace: Xareus.Utils
Assembly: Xareus.Utils.dll
Syntax
public static class Extensions
Methods
ToStringExtension<E>(IEnumerable<E>)
Returns the string representation of an enumeration.
Declaration
public static string ToStringExtension<E>(this IEnumerable<E> enumeration)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<E> | enumeration | The enumeration |
Returns
Type | Description |
---|---|
string | The string representation |
Type Parameters
Name | Description |
---|---|
E | The type of the elements of the enumeration |
ToStringExtension<K, V>(IEnumerable<KeyValuePair<K, V>>)
Returns the string representation of a dictionary.
Declaration
public static string ToStringExtension<K, V>(this IEnumerable<KeyValuePair<K, V>> dictionary)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<K, V>> | dictionary | The dictionary |
Returns
Type | Description |
---|---|
string | The string representation |
Type Parameters
Name | Description |
---|---|
K | The type of the keys of the dictionary |
V | The type of the values of the dictionary |