protected static bool IsValidIdentifierChar(char c) { if((c >= 'a') && (c <= 'z')) { return true; } if((c >= 'A') && (c <= 'Z')) { return true; } if(c == '_') { return true; } if((c >= '0') && (c <= '9')) { return true; } return false; }