Not defined for linq:
f.scoreSum == 0 ? (f.scoreCount < 0 ? int.MinValue : int.MaxValue) : f.scoreCount / f.scoreSum
If not zero, it will perform regular division. If it is zero, it will take the closest integer to right infinity (the one you would get if you used float), so that int.MinValue, where the result would be negative infinity and int.MaxValue, where the result would be positive infinity.
Caveat: 0/0 also leads to being โas close to positive infinity as possible,โ if that's not normal, you can add another nested ternary .. or just filter out 0/0 cases, because 0/0 isnโt really sorted anyway.
source share