News for hackers. Stuff that matters.
Re:Don't return null; use a tail call by bmm6o on Tuesday January 10, 2012 @04:10PM (#3449031)
More idiomatic C# might be:

  int result;
  if (foo.TryAndGetSomeNumber(out result))
    doSomething(result);
There might also be a foo.GetSomeNumber() that returns an int or throws on failure.

[fixed formatting]

Re:Don't return null; use a tail call by troygoode on Tuesday January 10, 2012 @08:18PM (#3450014)
I disagree that your example is more idiomatic. Maybe pre-3.0...