You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see available in latest version country codes and currency codes in /src/StaticValues.cs
IsValidEmail(stringemail)//checking email string for validity
IsValidIsoDate(stringdate)//checking is iso date string correct
InRange(intvalue,intmin,intmax)//checking is number > min and < max
IsMinLength(intminLength,stringstringToCheck)//checking is string length more than minimal requirement
IsLengthInRange(intmin,intmax,stringtoCheck)//check is string length > minLength and < maxLength
IsValidPhone(stringphone)//check is phone number correct
IsValidUrl(stringurl)//check is string url
IsValidPassword(stringpassword,intminLength)//check is password more than minimal length, and doesnt contain bad symbols
IsValidName(stringname,List<char>invalidChars)//check is name contains some bad symbols (you are choosing what symbols is bad in this case)
IsValidGuid(stringguid)//well, check is Guid string is valid
IsValidIPv4(stringip)//check is it ipv4
IsValidIPv6(stringip)// check is it ipv6
IsValidFileExtension(stringfilePath,string[]extensions)//check is this file in some right extension
IsFileSizeValid(stringfilePath,stringsizeWithUnit)// types of sizes - "b', "kb", "mb", "gb"
IsValidBase64(stringbase64String)//check is string valid base64 string
IsValidEnumValue(stringvalue)// is string value correct part of enum
IsSafeSQL(stringinput)// check is string contains some sql injection symbols/words
IsSafeXSS(stringinput)// check is this string safe and doesnt contains xss attack
IsValidJwt(stringtoken)// check is this jwt token valid
IsValidLatitude(double)isValidLongitude(double)IsValidCoordinates(doublelatitude,doublelongitude)// check coordinatesIsInCircularZone(doublelatitude,doublelongitude,doublecenterLatitude,doublecenterLongitude,doubleradiusKm)// check is coords in circular zoneDegreeToRadian(doubledegree)// degree to radian
IsValidCountryCode(stringcountryCode)// check is this country code valid
IsValidCurrencyCode(stringcurrencyCode)//check is this currency code valid
IsValidVIN(stringvin)//check is string correct vin code
IsValidCardNumber(strigncardNumber)//check card number by Luhn algo
IsValidMAC(stringmac)// is string valid mac address
IsValidMD5(stringhash)// is string correct md5 hash
IsValidSHA256(stringhash)// is string correct sha256 hash
IsValidHashtag(stringhashtag)// is string valid hashtag format
IsValidPassport(stringcountry,stringpassport)// check is passport correct for country