bool isDigit = Char.IsDigit(str, str.Length-1);
String str = "Hello123"; str = str.Substring(str.Length - 1); int temp=0; if(int.TryParse(str,out temp)) Console.WriteLine("Integer"); else Console.WriteLine("Not Integer");
String str = "pankaj3"; bool b = Char.IsDigit(str,str.Length - 1);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)