Example #1
0
 internal static Standard.List <T> Convert <T>(Il2Cpp.IEnumerable <T> enumerable)
 {
     Il2Cpp.List <T>   temp   = new Il2Cpp.List <T>(enumerable);
     Standard.List <T> result = new Standard.List <T>(temp.Count);
     foreach (var element in temp)
     {
         result.Add(element);
     }
     return(result);
 }
Example #2
0
 internal static T[] ToArray <T>(Il2Cpp.IEnumerable <T> enumerable) => ToArray <T>(new Il2Cpp.List <T>(enumerable));