Open Hosch250 opened 7 years ago
This is a common-ish pattern:
MyType foo; if (MyType.TryParse("string", out foo)) { /* use foo */ }
We can now write this as:
if (MyType.TryParse("string", out MyType foo)) { /* use foo */ }
foo is accessible in the same scope in both statements.
foo
This is a common-ish pattern:
We can now write this as:
foo
is accessible in the same scope in both statements.