Page 40 - CSharp/C#
P. 40

Introduction                                                                                       687
          Examples                                                                                           687


            Example of a generic method that rotates an array by a given shift                               687
        Chapter 111: Object initializers                                                                    689


          Syntax                                                                                             689

          Remarks                                                                                            689

          Examples                                                                                           689

            Simple usage                                                                                     689

            Usage with anonymous types                                                                       689

            Usage with non-default constructors                                                              690

        Chapter 112: Object Oriented Programming In C#                                                      691

          Introduction                                                                                       691

          Examples                                                                                           691

            Classes:                                                                                         691

        Chapter 113: ObservableCollection                                                                   692

          Examples                                                                                           692

            Initialize ObservableCollection                                                                  692

        Chapter 114: Operators                                                                              693

          Introduction                                                                                       693

          Syntax                                                                                             693

          Parameters                                                                                         693

          Remarks                                                                                            693

            Operator Precedence                                                                              693

          Examples                                                                                           695

            Overloadable Operators                                                                           695

            Relational Operators                                                                             697

            Short-circuiting Operators                                                                       699

            sizeof                                                                                           700

            Overloading equality operators                                                                   700

            Class Member Operators: Member Access                                                            701

            Class Member Operators: Null Conditional Member Access                                           702
            Class Member Operators: Function Invocation                                                      702
   35   36   37   38   39   40   41   42   43   44   45