pause at 3:00
This commit is contained in:
@@ -47,3 +47,16 @@ String fullName = "mrsh online";
|
||||
String firstName = fullName.Substring(0,4);
|
||||
String lastName = fullName.Substring(5,6);
|
||||
```
|
||||
|
||||
## String interpolation
|
||||
|
||||
```C#
|
||||
String firstName = "mrsh";
|
||||
String lastName = "Online";
|
||||
int age = 21;
|
||||
|
||||
Console.WriteLine($"Hello {firstName} {lastName}.");
|
||||
|
||||
// include 10 spaces
|
||||
Console.WriteLine($"You are {age, 10} years old.");
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user