mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +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
|
// try parse will default to type default on failure
|
||||||
// in this case: 0
|
// in this case: 0
|
||||||
int tryInt;
|
int tryInt;
|
||||||
if (int.TryParse("123", out tryInt)) // Funciton is boolean
|
if (int.TryParse("123", out tryInt)) // Function is boolean
|
||||||
Console.WriteLine(tryInt); // 123
|
Console.WriteLine(tryInt); // 123
|
||||||
|
|
||||||
// Convert Integer To String
|
// Convert Integer To String
|
||||||
|
Loading…
Reference in New Issue
Block a user