コード例 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("======== Arithmetic operators examples =========");
            ArithmeticOperators.Examples();
            Console.WriteLine();

            Console.WriteLine("============== == and != operator examples =====");
            EqualityAndNonEqualityExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("======== Logical operators examples ============");
            LogicalOperators.Examples();
            Console.WriteLine();

            Console.WriteLine("============== + operator examples =============");
            AdditionExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== & operator examples =============");
            AndOperatorExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== = operator examples =============");
            AssignmentExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== ?: operator examples ============");
            ConditionalExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== ~ operator examples =============");
            BitwiseComplementExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("======= >, <, >=, and <= operator examples =====");
            GreaterAndLessOperatorsExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== [] operator examples ============");
            IndexOperatorExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== () operator examples ============");
            InvocationOperatorExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== => operator examples ============");
            LambdaOperatorExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("===== <<, <<=, >>, and >>= operator examples ===");
            ShiftOperatorsExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== . operator examples =============");
            MemberAccessExamples.Examples();
            Console.WriteLine();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: rajeshnr2005/samples
        static void Main(string[] args)
        {
            Console.WriteLine("============== % operator examples =============");
            RemainderExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== + operator examples =============");
            AdditionExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== & operator examples =============");
            AndOperatorExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== = operator examples =============");
            AssignmentExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== ?: operator examples ============");
            ConditionalExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== ~ operator examples =============");
            BitwiseComplementExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== && and || operator examples =====");
            ConditionalLogicalOperatorsExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== -- and ++ operator examples =====");
            DecrementAndIncrementExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== / operator examples =============");
            DivisionExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== == and != operator examples =====");
            EqualityAndNonEqualityExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("======= >, <, >=, and <= operator examples =====");
            GreaterAndLessOperatorsExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== [] operator examples ============");
            IndexOperatorExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== () operator examples ============");
            InvocationOperatorExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== => operator examples ============");
            LambdaOperatorExamples.Examples();
            Console.WriteLine();
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: williamhwang/samples
        static void Main(string[] args)
        {
            Console.WriteLine("======== Arithmetic operators examples =========");
            ArithmeticOperators.Examples();
            Console.WriteLine();

            Console.WriteLine("============= == and != operators examples =====");
            EqualityAndNonEqualityExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("======== Logical operators examples ============");
            LogicalOperators.Examples();
            Console.WriteLine();

            Console.WriteLine("==== Bitwise and shift operators examples ======");
            BitwiseAndShiftOperators.Examples();
            Console.WriteLine();

            Console.WriteLine("====== >, <, >=, and <= operators examples =====");
            GreaterAndLessOperatorsExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("========= Member access operators examples =====");
            MemberAccessOperators.Examples();
            Console.WriteLine();

            Console.WriteLine("======= Pointer related operators examples =====");
            PointerOperators.Examples();
            Console.WriteLine();

            Console.WriteLine("============== + operator examples =============");
            AdditionExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== = operator examples =============");
            AssignmentExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== ?: operator examples ============");
            ConditionalExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== () operator examples ============");
            InvocationOperatorExamples.Examples();
            Console.WriteLine();

            Console.WriteLine("============== => operator examples ============");
            LambdaOperatorExamples.Examples();
            Console.WriteLine();
        }