Page 8 - CSharp/C#
P. 8

Syntax                                                                                             120
          Parameters                                                                                         120


          Remarks                                                                                            120

          Examples                                                                                           120

            Async & Await                                                                                    120
            Caller Information Attributes                                                                    122


        Chapter 25: C# 6.0 Features                                                                         123

          Introduction                                                                                       123

          Remarks                                                                                            123

          Examples                                                                                           123

            Operator nameof                                                                                  123

        Workaround for previous versions (more detail)                                                      124

          Expression-bodied function members                                                                 125

        Properties                                                                                          125

        Indexers                                                                                            125


        Methods                                                                                             126

        Operators                                                                                           126

        Limitations                                                                                         127

          Exception filters                                                                                  127

          Using exception filters                                                                            128

          Risky when clause                                                                                  128

          Logging as a side effect                                                                           130


        The finally block                                                                                   131

          Example: finally block                                                                             131

            Auto-property initializers                                                                       132

        Introduction                                                                                        132

          Accessors With Different Visibility                                                                132

          Read-Only Properties                                                                               133

        Old style (pre C# 6.0)                                                                              133

        Usage                                                                                               133


        Cautionary notes                                                                                    134
   3   4   5   6   7   8   9   10   11   12   13