March 2016
Intermediate to advanced
550 pages
10h 57m
English
The most common type of data for variables is text. The most common types in .NET for working with text are shown in the following table:
|
Namespace |
Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Add a new console application project named Ch04_ManipulatingText. Set the solution's startup project to be the current selection.
Sometimes, you need to find out the length of a piece of text stored in a string variable. Modify the code to look like this:
using static System.Console; namespace Ch04_ManipulatingText { class Program { static void Main(string[] args) { string city = "London"; WriteLine($"{city} is {city.Length} ...
Read now
Unlock full access