Page 46 - CSharp/C#
P. 46

Examples                                                                                           780
            Statically Initialized Singleton                                                                 780

            Lazy, thread-safe Singleton (using Double Checked Locking)                                       780

            Lazy, thread-safe Singleton (using Lazy)                                                         781

            Lazy, thread safe singleton (for .NET 3.5 or older, alternate implementation)                    781

            Disposing of the Singleton instance when it is no longer needed                                  782

        Chapter 133: Static Classes                                                                         784

          Examples                                                                                           784

            Static keyword                                                                                   784

            Static Classes                                                                                   784

            Static class lifetime                                                                            785

        Chapter 134: Stopwatches                                                                            787

          Syntax                                                                                             787

          Remarks                                                                                            787

          Examples                                                                                           787

            Creating an Instance of a Stopwatch                                                              787

            IsHighResolution                                                                                 787

        Chapter 135: Stream                                                                                 789

          Examples                                                                                           789

            Using Streams                                                                                    789

        Chapter 136: String Concatenate                                                                     791

          Remarks                                                                                            791


          Examples                                                                                           791
            + Operator                                                                                       791

            Concatenate strings using System.Text.StringBuilder                                              791

            Concat string array elements using String.Join                                                   791

            Concatenation of two strings using $                                                             792

        Chapter 137: String Escape Sequences                                                                793

          Syntax                                                                                             793

          Remarks                                                                                            793

          Examples                                                                                           793

            Unicode character escape sequences                                                               793
   41   42   43   44   45   46   47   48   49   50   51