Class Lists
Static class holding some utility methods regarding object collections.
Inheritance
System.Object
Lists
Namespace: Paramdigma.Core.Extensions
Assembly: Paramdigma.Core.dll
Syntax
public static class Lists : object
Methods
| Improve this Doc View SourceRepeated<T>(T, Int32)
Initializes a new list full of objects initialized the values of the specified instance of T.
Declaration
public static List<T> Repeated<T>(T value, int count)
Parameters
Type | Name | Description |
---|---|---|
T | value | Object to insert on every index of the list. |
System.Int32 | count | Number of objects in the list. |
Returns
Type | Description |
---|---|
List<T> | //TODO. |
Type Parameters
Name | Description |
---|---|
T | Type of object in the list. |
RepeatedDefault<T>(Int32)
Initializes a new list full of objects initialized with their default constructor.
Declaration
public static List<T> RepeatedDefault<T>(int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | count | Number of objects in the list. |
Returns
Type | Description |
---|---|
List<T> | //TODO. |
Type Parameters
Name | Description |
---|---|
T | Type of object in the list. |