Check
Utility class for email domain validation, Philippine mobile number matching, string analysis, countdown calculations, and network connection testing.
Methods
static bool IsAValidPhilippineMobileNumber(string str)
Validates Philippine mobile numbers matching formats starting with 09, +639, or 639.
static bool IsAllNumbers / HasNumbers / HasSymbols / HasSpaces(string str)
Evaluates whether a string consists strictly of numeric digits, or contains numbers, symbols, or whitespace characters.
static double HowManySecondsLeft / MinutesLeft / HoursLeft / DaysLeft(DateTime now, DateTime until)
Calculates total remaining time between two DateTime instances.
static void CheckConnection()
Performs a network connection test by requesting Google's network test endpoint.
Check.Email
Evaluates email addresses using split domain mode (checking name and extension separately) or full domain mode.
C#
// Split Mode
Check.Email.AddValidDomainName("gmail");
Check.Email.AddValidDomainExtension("com");
bool isValid = Check.Email.IsValid("[email protected]");
// Full Domain Mode
Check.Email.AddValidDomain("company.org");
Check.Email.ShouldUseFullDomain(true);
bool matches = Check.Email.IsValid("[email protected]");