Page 11 - CSharp/C#
P. 11

Unsafe Ref Operations                                                                               166

        Links                                                                                               167

          throw expressions                                                                                  167

          Extended expression bodied members list                                                            168

          ValueTask                                                                                          169

        1. Performance increase                                                                             169

        2. Increased implementation flexibility                                                             169


          Synchronous implementation:                                                                        170

          Asynchronous implementation                                                                        170

        Notes                                                                                               170

        Chapter 27: C# Authentication handler                                                               172

          Examples                                                                                           172

            Authentication handler                                                                           172

        Chapter 28: C# Script                                                                               174

          Examples                                                                                           174

            Simple code evaluation                                                                           174

        Chapter 29: Caching                                                                                 175


          Examples                                                                                           175

            MemoryCache                                                                                      175

        Chapter 30: Casting                                                                                 176

          Remarks                                                                                            176

          Examples                                                                                           176

            Cast an object to a base type                                                                    176

            Explicit Casting                                                                                 177

            Safe Explicit Casting (`as` operator)                                                            177
            Implicit Casting                                                                                 177

            Checking compatibility without casting                                                           177

            Explicit Numeric Conversions                                                                     178

            Conversion Operators                                                                             178

            LINQ Casting operations                                                                          179

        Chapter 31: Checked and Unchecked                                                                   181
   6   7   8   9   10   11   12   13   14   15   16