コード例 #1
0
        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();
        }
コード例 #2
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();
        }
コード例 #3
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();
        }
コード例 #4
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();
        }
コード例 #5
0
        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();
        }
コード例 #6
0
ファイル: Program.cs プロジェクト: starrkkk/samples
        static void Main(string[] args)
        {
            Console.WriteLine("======== Arithmetic operators examples =========");
            ArithmeticOperators.Examples();
            Console.WriteLine();

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

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

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

            Console.WriteLine("====== >, <, >=, and <= operators examples =====");
            ComparisonOperators.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 =============");
            AdditionOperator.Examples();
            Console.WriteLine();

            Console.WriteLine("============== - operator examples =============");
            SubtractionOperator.Examples();
            Console.WriteLine();

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

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

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

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

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

            Console.WriteLine("============ stackalloc operator examples ======");
            StackallocOperator.Examples();
            Console.WriteLine();

            Console.WriteLine("========= true and false operators examples ====");
            LaunchStatusTest.Main();
            Console.WriteLine();
        }