GameFramework.NicknameSystem.IsValidateCharacter C# (CSharp) Method

IsValidateCharacter() private static method

private static IsValidateCharacter ( char ch ) : bool
ch char
return bool
        private static bool IsValidateCharacter(char ch)
        {
            //增加汉字输入
              if (ch >= 0x4e00 && ch <= 0x9fa5) return true;
              // Lowercase and numbers
              if (ch >= 'A' && ch <= 'Z') return true;
              if (ch >= 'a' && ch <= 'z') return true;
              if (ch >= '0' && ch <= '9') return true;
              //增加特殊字符判段
              if (ch == '.') return true;
              if (ch == '_') return true;
              return false;
        }