Hacker News
points by CharlieDigital 3 days ago | 0 comments
C# `out` is kinda nice because it can be `var`d and used directly.
[–] troupo 3 days ago
Erm... what do you mean?
[–] metaltyphoon 3 days ago

  if (int.TryParse(str, out var value) && value == 5)
  {
      // value is available 
  }

   // value also available