Class Initialization
Provides some helper methods and functions for initializing various objects.
Inheritance
Initialization
Namespace: MultidimLib.Extensions
Syntax
public class Initialization
Methods
C<T>(T)
Wraps the current object inside a container (Container<T> object).
Declaration
[Extension]
public static Container<T> C<T>(this T obj)
Parameters
| Type | Name | Description |
|---|---|---|
| T | obj | The object to be wrapped by the container. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the object that the container will wrap. |
P(IEnumerable<Int32>)
Initializes a new point (Point object) with the current enumerable of values as its coordinates.
Declaration
[Extension]
public static Point P(this IEnumerable<int> coordinates)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Int32> | coordinates | The values to be the coordinates for the initialized point. |
P(Int32)
Initializes a new point (Point object) with the current value as its coordinate.
Declaration
[Extension]
public static Point P(this int coordinate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | coordinate | The value to be the coordinate for the initialized point. |