Page 48 - CSharp/C#
P. 48

Places where String.Format is 'embedded' in the framework                                        803

            Using custom number format                                                                       804

            Create a custom format provider                                                                  804

            Align left/ right, pad with spaces                                                               805

            Numeric formats                                                                                  805

            Currency Formatting                                                                              805

          Precision                                                                                          805

          Currency Symbol                                                                                    806

          Position of Currency Symbol                                                                        806

          Custom Decimal Separator                                                                           806

            Since C# 6.0                                                                                     806

            Escaping curly brackets inside a String.Format() expression                                      807

            Date Formatting                                                                                  807

            ToString()                                                                                       809
            Relationship with ToString()                                                                     809

          Caveats & Formatting Restrictions                                                                  810

        Chapter 141: StringBuilder                                                                          811


          Examples                                                                                           811

            What a StringBuilder is and when to use one                                                      811

            Use StringBuilder to create string from a large number of records                                812
        Chapter 142: Structs                                                                                813


          Remarks                                                                                            813

          Examples                                                                                           813

            Declaring a struct                                                                               813

            Struct usage                                                                                     814

            Struct implementing interface                                                                    815
            Structs are copied on assignment                                                                 815

        Chapter 143: Structural Design Patterns                                                             817

          Introduction                                                                                       817


          Examples                                                                                           817

            Adapter Design Pattern                                                                           817

        Chapter 144: Synchronization Context in Async-Await                                                 821
   43   44   45   46   47   48   49   50   51   52   53