using System.Collections.Generic;
public static void Main()
string input = ".NET 4.7.2";
Console.WriteLine("Is each of the following characters a digit?");
for (int i = 0; i < input.Length; i++)
var result = input.IsDigit(i);
Console.WriteLine("{0} : {1} ", input[i], result);