示例#1
0
        public static bool IsServ(this string Value, Serv serv)
        {
            foreach (var func in Enum.GetNames(typeof(Serv)))
            {
                if (func == Value && Value == serv.ToString())
                {
                    return(true);
                }
            }

            return(false);
        }
示例#2
0
        public static bool IsServ(this string Value, Serv serv)
        {
            foreach(var func in Enum.GetNames(typeof(Serv)))
            {
                if(func == Value && Value == serv.ToString())
                    return true;
            }

            return false;
        }