Example #1
0
        public static void Main()
        {
            Console.WriteLine("----------------------------");
            Console.WriteLine("C#7 -- Binary Literals & Digit Separators");
            Console.WriteLine("----------------------------");
            BinLitDigSep.Main();

            Console.WriteLine("\n----------------------------");
            Console.WriteLine("C#7 -- Tuples & Deconstruction");
            Console.WriteLine("----------------------------");
            Tuples.Main();
            DeconstructEG.Main();

            Console.WriteLine("----------------------------");
            Console.WriteLine("C#7 -- Local Functions");
            Console.WriteLine("----------------------------");
            LocalFunc.Main();

            Console.WriteLine("----------------------------");
            Console.WriteLine("C#7 -- Pattern Matching");
            Console.WriteLine("----------------------------");
            PatternMatch.Main();

            Console.WriteLine("\n----------------------------");
            Console.WriteLine("C#7 -- Out variables");
            Console.WriteLine("----------------------------");
            OutVarDecl.Main();

            Console.WriteLine("----------------------------");
            Console.WriteLine("C#7 -- Expression bodied getters and setters");
            Console.WriteLine("----------------------------");
            ExprBodyGetSet.Main();

            Console.WriteLine("\n----------------------------");
            Console.WriteLine("C#7 -- Expression bodied constructors and finalizers");
            Console.WriteLine("----------------------------");
            ExprBodyConstrFinalizer.Main();

            Console.WriteLine("\n----------------------------");
            Console.WriteLine("C#7 -- Throw Expressions");
            Console.WriteLine("----------------------------");
            ThrowExpr.Main();

            Console.WriteLine("\n----------------------------");
            Console.WriteLine("C#7 -- Discards");
            Console.WriteLine("----------------------------");
            DiscardsEG.Main();

            Console.WriteLine("----------------------------");
            Console.WriteLine("C#7 -- Generalized async return types");
            Console.WriteLine("----------------------------");
            Console.WriteLine("See the source filed named \"GenAsyncReturn.cs\" ");

            Console.WriteLine("\n----------------------------");
            Console.WriteLine("C#7 -- Ref returns and locals");
            Console.WriteLine("----------------------------");
            RefLocal.Main();

            Console.WriteLine("\n----------------------------");
            Console.WriteLine("----------------------------");
        }