C# TryParse

05.25.2011

example

 

int age;

int.TryParse(txtAge.Text, out age);

 

test to see if integer

if true, assigns age to age variable