Class Extensions
Extension methods which apply to all types.
Inheritance
System.Object
Extensions
Namespace: X10D.Core
Assembly: X10D.dll
Syntax
public static class Extensions : object
Methods
| Improve this Doc View SourceAsArrayValue<T>(T)
Returns an array containing the specified value.
Declaration
public static T[] AsArrayValue<T>(this T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to encapsulate. |
Returns
Type | Description |
---|---|
T[] | An array of type |
Type Parameters
Name | Description |
---|---|
T | The type of |
AsEnumerableValue<T>(T)
Returns an enumerable collection containing the specified value.
Declaration
public static IEnumerable<T> AsEnumerableValue<T>(this T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to encapsulate. |
Returns
Type | Description |
---|---|
IEnumerable<T> | An enumerable collection of type |
Type Parameters
Name | Description |
---|---|
T | The type of |
RepeatValue<T>(T, Int32)
Returns an enumerable collection containing the current value repeated a specified number of times.
Declaration
public static IEnumerable<T> RepeatValue<T>(this T value, int count)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to repeat. |
System.Int32 | count | The number of times to repeat |
Returns
Type | Description |
---|---|
IEnumerable<T> | An enumerable collection containing |
Type Parameters
Name | Description |
---|---|
T | The type of |