Is there an equivalent of SQL NULLIF function built-in within c#?
Example of what it could look like :
double? result
double denominator = 0;
double Numerator = 100;
result = Numerator / NullIf(denominator, 0);
result = Numerator / denominator.NullIf(0);
result = Numerator / Object.NullIf(denominator, 0);
result = denominator == 0 ? (double?)null : Numberator/denomiantor;