Esempio n. 1
0
        public static ValueCollection CreateArray(params object[] arrayItems)
        {
            var values     = arrayItems.Select(Create);
            var collection = new ValueCollection(values);

            return(collection);
        }
Esempio n. 2
0
        public static ValueCollection CreateArray(IEnumerable enumerable)
        {
            var items      = enumerable.Cast <object>();
            var values     = items.Select(Create);
            var collection = new ValueCollection(values);

            return(collection);
        }