C# Numeric Test Field Validation

Class Validation{

public boolean IsNumeric(String v) {
  return v.ToCharArray().Where(x => !Char.IsDigit(x)).Count() == 0;
}
}

No comments:

Post a Comment

Unleashing the Power of NumPy Arrays: A Guide for Data Wranglers

Ever feel like wrestling with data in Python using clunky loops? NumPy comes to the rescue! This blog post will unveil the magic of NumPy a...