public static void Main()
string texto = "123456789";
for(int ContChar = 0 ; ContChar < texto.Length; ContChar++)
string texto10 = texto.Remove(ContChar, texto.Length - ContChar);
bool result = Int32.TryParse(texto10, out number);
Console.WriteLine(result.ToString());
Console.WriteLine(number.ToString());