Archives for: "November 2008, 22"
Use tryparse if that is possible or have a validation
I faced a number of error for parsing a string into int. In most of cases, there is a validation missing. CodeIf (IsNumeric(str)){ int i =0; Int32.TryParse(str,out i);} You can use regex inside IsNumber or use foreach loop to… more »