C# Tutorial For Beginners 2024 - 14. "Null Reference Exception/Error"
Вставка
- Опубліковано 21 сер 2024
- C# Tutorial For Beginners 2024 - 14. "Null Reference Exception/Error"
Github repo for course: github.com/ted...
Twitter: / teddysmithdev
Github: github.com/ted...
Linkedin: / teddy-smith-015ba61a3
int? value = null;
string? value2 = null;
Console.WriteLine(value is null);
Console.WriteLine(value2 is null);
Console.WriteLine(value2 ?? "default");
Console.WriteLine(value ?? 0);
Console.WriteLine(value is not null ? "true" : "false");
Console.WriteLine(value2 is not null ? "true" : "false");
✘ is not
✓ !==
damn c# is new python :|
C# is getting wild. I came back from Java and it’s a whole new world now. Java is still way more popular but C# has left Java in the dust in terms of new features. It almost looks like JS now.
@@TeddySmithDevdo you think it’s good or you prefer the old C#?
@@shafialanower3820 its amazing
@@TeddySmithDev Great!