internal static string FilterFigure(string figure) { for (int i = 0; i < figure.Length; i++) { char character = figure[i]; if (!CyberEnvironment.isValid(character)) { return("lg-3023-1335.hr-828-45.sh-295-1332.hd-180-4.ea-3168-89.ca-1813-62.ch-235-1332"); } } return(figure); }
internal static bool IsValidAlphaNumeric(string inputStr) { inputStr = inputStr.ToLower(); if (string.IsNullOrEmpty(inputStr)) { return(false); } checked { for (int i = 0; i < inputStr.Length; i++) { if (!CyberEnvironment.isValid(inputStr[i])) { return(false); } } return(true); } }