Page 47 - CSharp/C#
P. 47

Escaping special symbols in character literals                                                   793

            Escaping special symbols in string literals                                                      794

            Unrecognized escape sequences produce compile-time errors                                        794

            Using escape sequences in identifiers                                                            794

        Chapter 138: String Interpolation                                                                   796

          Syntax                                                                                             796

          Remarks                                                                                            796

          Examples                                                                                           796

            Expressions                                                                                      796

            Format dates in strings                                                                          796

            Simple Usage                                                                                     797

          Behind the scenes                                                                                  797

            Padding the output                                                                               797

          Left Padding                                                                                       797

          Right Padding                                                                                      798

          Padding with Format Specifiers                                                                     798

            Formatting numbers in strings                                                                    798

        Chapter 139: String Manipulation                                                                    800

          Examples                                                                                           800

            Changing the case of characters within a String                                                  800

            Finding a string within a string                                                                 800

            Removing (Trimming) white-space from a string                                                    801

            Replacing a string within a string                                                               801

            Splitting a string using a delimiter                                                             801

            Concatenate an array of strings into a single string                                             802

            String Concatenation                                                                             802
        Chapter 140: String.Format                                                                          803


          Introduction                                                                                       803

          Syntax                                                                                             803

          Parameters                                                                                         803

          Remarks                                                                                            803

          Examples                                                                                           803
   42   43   44   45   46   47   48   49   50   51   52