Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# convert string to int

int number;
bool result = int.TryParse("12345", out number);
if(result)
                {
                    // Do whatever.
                }
                else
                {
                    // Failed to parse.
                }
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #convert #string #int
ADD COMMENT
Topic
Name
4+8 =