A Software Engineer's Blog by Brandon D'Souza
© 2024 Code-Sage.com. All rights reserved.
C# language feature:
applies to
benefit
out
how to use
example:
void Out_Variable_Example(string string2parse) { // int i; //previously int needed declaration like this bool parsed = int.TryParse(string2parse, out int i); if (parsed) System.Console.WriteLine($"the int is {i}"); else System.Console.WriteLine("parse did not go well"); }