Skip to content

Commit 414a74c

Browse files
Merge pull request #53214 from buzahid/wwl-language
Update exercise on literal values in C#
2 parents 22d04c5 + cb06386 commit 414a74c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

learn-pr/wwl-language/csharp-literals-variables/includes/2-exercise-literal-values.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,14 @@ The same can be said of `bool`. If you need to work with the words `"true"` and
167167
It's important to know that these values may look like their string literal equivalents. In other words, you may think these statements are the same:
168168

169169
```csharp
170+
// Output: 123
170171
Console.WriteLine("123");
172+
// Output: 123
171173
Console.WriteLine(123);
172174

175+
// Output: true
173176
Console.WriteLine("true");
177+
// Output: True
174178
Console.WriteLine(true);
175179
```
176180

0 commit comments

Comments
 (0)