Exemplo n.º 1
0
        public static void Array_Create()
        {
            //this example shows how to create non-default value array

            //use ArrayExt.Create(length, defaultValue) to create non-default value array
            var bools = ArrayExt.Create(5, true);

            //show results
            Console.WriteLine(bools.ToString(", "));
        }
Exemplo n.º 2
0
        public static void Enum()
        {
            //this example shows how to create array from enum type

            //ArrayExt.Enum<enumType> create array of the enum type
            var days = ArrayExt.Enum <DayOfWeek>();

            //show result
            Console.WriteLine(days.ToString(", "));
        }