示例#1
0
 public override bool Validate()
 {
     if (CommandParsed.Count() != 2)
     {
         return(false);
     }
     return(true);
 }
示例#2
0
        public override bool Validate()
        {
            if (CommandParsed.Count() != 3)
            {
                return(false);
            }
            string type = CommandParsed[2];

            if (type != "0" && type != "1")
            {
                return(false);
            }

            return(true);
        }