Check Null is so important in daily programming. Developers should be aware of this super important step.
- we can use if statement like string str =””; str!=null;
For object: For Example, var animal = new Animal();
if animal != null
object animal could have so many properties. The way of checking those properties is the same as object animal.
For nullable value type. we can use int i = 1;