Correctly Checking for Null in C# #shorts #programming #csharp

preview_player
Показать описание
You may have heard that is null is better than == null, but do you know why?
Starting with C# 7 the pattern matching in C# let you compare to the constant value null instead of doing an equality comparison.

#shorts
#programming
#csharp
#Coding
#dotnet
#Tutorial
Рекомендации по теме
Комментарии
Автор

Equality operator is fine... But it is nicer style wise

Atr