Some fixes from the ports.

This commit is contained in:
hondacrx
2021-09-26 16:14:57 -04:00
parent a43f839669
commit 35710258b9
7 changed files with 56 additions and 40 deletions
@@ -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>