mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
commit
25dbc80b2d
@ -307,7 +307,7 @@ on a new line! ""Wow!"", the masses cried";
|
||||
// try parse will default to type default on failure
|
||||
// in this case: 0
|
||||
int tryInt;
|
||||
if (int.TryParse("123", out tryInt)) // Funciton is boolean
|
||||
if (int.TryParse("123", out tryInt)) // Function is boolean
|
||||
Console.WriteLine(tryInt); // 123
|
||||
|
||||
// Convert Integer To String
|
||||
|
Loading…
Reference in New Issue
Block a user