예제 #1
0
        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);
        }
예제 #2
0
        public static TSource[] FilterArray <TSource>(this ICollection <TSource> @this, Func <TSource, bool> filter)
        {
            var list = CollectionExtend.FilterCollection(@this, filter);

            return(list.ToArray());
        }