I would like to prevent further processing on an object if it is null.
In the following code I check if the object is null by either:
if (!data.Equal
With c#9 (2020) you can now check a parameter is null with this code:
if (name is null) { } if (name is not null) { }
You can have more information here