#1 Basic set variable and show
Basic set variable and show
var Firstname = "Terry"
and show with @firstName
Just a simple variable - create and show.
⬇️ Result | Source ➡️
Name: Terry
⬇️ Result | Source ➡️
Age: 27
Birthday: 9/9/1999 12:00:00 AM
Birthday nicer using ToString("d"): 9/9/1999
Birthday as ISO ToString("yyyy-MM-dd"): 1999-09-09
Birthday: 9/9/1999 12:00:00 AM
Birthday nicer using ToString("d"): 9/9/1999
Birthday as ISO ToString("yyyy-MM-dd"): 1999-09-09
⬇️ Result | Source ➡️
Dog Count: 3
Dog[0]: hound
Dog First (with LINQ): hound
Dog Last (with LINQ): doggy
Dog[0]: hound
Dog First (with LINQ): hound
Dog Last (with LINQ): doggy
- Dog 0: hound
- Dog 1: dackel
- Dog 2: doggy
#1 Basic set variable and show