L. P. with Microsoft C# - Level 2-Quiz-2
- Two bytes are used to encode a single character in the Unicode format.
- When you are creating strings, there are escape characters to put non-printable characters into the string, such as tabs and new lines. \n is the escape character for a new line.
- What happens if you try to concatenate additional string information onto the end of an existing string?
The old object is destroyed and a new string is created.
- You have an object from which you want to extract a string representation. ToString method you would use to do this.
- You want to use a string method to create a new string from one or more other strings. Concat method you would use to do this.
- You want to remove unwanted specified characters from the start and end of a string. Trim string method you would use to do this.
- The StringBuilder class is mutable, unlike the string class is immutable. You can use .ToString to pull the string out of the StringBuilder.
Permalink |
Comments (0) | Hits: 1101 | Time: 15:14:31