Some fixes from the ports.
This commit is contained in:
@@ -180,6 +180,12 @@ namespace System.Collections.Generic
|
||||
{
|
||||
Array.Clear(array, 0, array.Length);
|
||||
}
|
||||
|
||||
public static void EnsureWritableListIndex<T>(this List<T> list, uint index, T defaultValue)
|
||||
{
|
||||
while (list.Count <= index)
|
||||
list.Add(defaultValue);
|
||||
}
|
||||
}
|
||||
|
||||
public interface ICheck<in T>
|
||||
|
||||
Reference in New Issue
Block a user