Version 3.0.0.2

ListExtensions class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public static class ListExtensions
Inheritance
  • System.Object
  • ListExtensions

Methods

SetLength<T>(IList<T>, Int32)
public static void SetLength<T>(this IList<T> list, int length)
Parameters
System.Collections.Generic.IList<T> list

System.Int32 length

Type Parameters
T

SetLength<T>(IList<T>, Int32, Func<T>)
public static void SetLength<T>(this IList<T> list, int length, Func<T> newElement)
Parameters
System.Collections.Generic.IList<T> list

System.Int32 length

System.Func<T> newElement

Type Parameters
T

SetLength<T>(ref IList<T>, Int32)
public static void SetLength<T>(ref IList<T> list, int length)
Parameters
System.Collections.Generic.IList<T> list

System.Int32 length

Type Parameters
T

SetLength<T>(ref IList<T>, Int32, Func<T>)
public static void SetLength<T>(ref IList<T> list, int length, Func<T> newElement)
Parameters
System.Collections.Generic.IList<T> list

System.Int32 length

System.Func<T> newElement

Type Parameters
T