title: C# - Is it possible to make divide-by-zeros return a number, instead of throwing an exception?
body: <p>I have an expression that includes divisions, for which some of the denominators are sometimes zero. However, in those cases I would like that division to result in 1, instead of throwing an exception. Is there any straightforward way about doing this, or am I forced to do some if statements and changing the inputs to the expression to get this desired effect?</p>