public static ValueCollection CreateArray(params object[] arrayItems) { var values = arrayItems.Select(Create); var collection = new ValueCollection(values); return(collection); }
public static ValueCollection CreateArray(IEnumerable enumerable) { var items = enumerable.Cast <object>(); var values = items.Select(Create); var collection = new ValueCollection(values); return(collection); }