| Namespace: | Sirenix.Utilities |
| Assembly: | Sirenix.Utilities |
public static class ListExtensions
public static void SetLength<T>(this IList<T> list, int length)
| System.Collections.Generic.IList<T> | list | The list. |
| System.Int32 | length | The new length. |
| T |
public static void SetLength<T>(this IList<T> list, int length, Func<T> newElement)
| System.Collections.Generic.IList<T> | list | The list. |
| System.Int32 | length | The new length. |
| System.Func<T> | newElement | Value of new elements. |
| T |
public static void SetLength<T>(ref IList<T> list, int length)
| System.Collections.Generic.IList<T> | list | The list. |
| System.Int32 | length | The new length. |
| T |
public static void SetLength<T>(ref IList<T> list, int length, Func<T> newElement)
| System.Collections.Generic.IList<T> | list | The list. |
| System.Int32 | length | The new length. |
| System.Func<T> | newElement | Value of new elements. |
| T |