c# Проверка состоит ли из чисел строка

public static bool isDigit(string val)
        {
            foreach (char c in val)
                if (!Char.IsDigit(c))
                    return false;
            return true;
        }

No comments:

Post a Comment

Note: only a member of this blog may post a comment.