Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 526.9k

What does static mean

Aug 17 2024 1:16 AM

Hi

public static class CommonFunction
{
   public static bool IsAlphaNumericWithUnderscore(string input)
   {
     return Regex.IsMatch(input, "^[a-zA-Z0-9_]+$");
   }
   public static bool IsAllLetters(string s)
   {
     foreach (char c in s)
     {
       if (!Char.IsLetter(c))
         return false;
       }
       return true;
   }
}

Thanks


Answers (1)