public static bool IsKeyWord(string property, out ConfigKeyWord keyword) { keyword = ConfigKeyWord.Now; if (property == null) { return(false); } property = property.Trim(); if (property.Length <= 2) { return(false); } if (property[0] != '[' || property[property.Length - 1] != ']') { return(false); } property = property.Substring(1, property.Length - 2).ToUpper(); if (property == "NOW") { keyword = ConfigKeyWord.Now; return(true); } else if (property == "USERACCT") { keyword = ConfigKeyWord.UserAcct; return(true); } else if (property == "USERSYSNO") { keyword = ConfigKeyWord.UserSysNo; return(true); } return(false); }
public static bool IsKeyWord(string property, out ConfigKeyWord keyword) { keyword = ConfigKeyWord.Now; if (property == null) { return false; } property = property.Trim(); if (property.Length <= 2) { return false; } if (property[0] != '[' || property[property.Length - 1] != ']') { return false; } property = property.Substring(1, property.Length - 2).ToUpper(); if (property == "NOW") { keyword = ConfigKeyWord.Now; return true; } else if (property == "USERACCT") { keyword = ConfigKeyWord.UserAcct; return true; } else if (property == "USERSYSNO") { keyword = ConfigKeyWord.UserSysNo; return true; } return false; }