public static T[] ConvertNumbersAndVectors <T>(params Color[] values) { ICollection <T> collection = CollectionExtend.ConvertNumbersAndVectors <T>(values); if (collection != null && collection.Cast <T>().IsNotNull(out var enumerable)) { return(enumerable.ToArray()); } return(null); }
public static TSource[] FilterArray <TSource>(this ICollection <TSource> @this, Func <TSource, bool> filter) { var list = CollectionExtend.FilterCollection(@this, filter); return(list.ToArray()); }