c# is not null code example
Example 1: c# check that value is not null or 0
public static bool IsNullOrValue(this double? value, double valueToCheck)
{
return (value??valueToCheck) == valueToCheck;
}
Example 2: c# is not
if(!(child is IContainer))