示例#1
0
        static void Main(string[] args)
        {
            calculator obj = new calculator();

            obj.property1 = 10;
            obj.var1      = 20;

            //int avg = Average(1, "2", 3.0f);
            exceptionexample();

            int[, ][,] arr = new int[3, 3][, ];
            arr[0, 0]      = new int[2, 2];

            unsafe
            {
                int *p = stackalloc int[10];
            }
        }
示例#2
0
        public void naam()
        {
            calculator obj = new calculator();

            obj.setvar1(10);
        }