not null or empty c# code example
Example 1: c# check if string is empty
if (string.IsNullOrEmpty(myString)) {
//
}
Example 2: c# check that value is not null or 0
public static bool IsNullOrValue(this double? value, double valueToCheck)
{
return (value??valueToCheck) == valueToCheck;
}