Example #1
0
 public override IPara Initial(string con, string v)
 {
     com.wd.free.para.BoolPara p = (com.wd.free.para.BoolPara)pool.BorrowObject();
     p.name = EMPTY_NAME;
     try
     {
         p.value = bool.Parse(v);
     }
     catch (Exception)
     {
         p.value = false;
     }
     return(p);
 }
Example #2
0
 public override IPara Initial(string con, string v)
 {
     com.wd.free.para.BoolPara p = (com.wd.free.para.BoolPara) this.Copy();
     p.name = EMPTY_NAME;
     try
     {
         p.value = ParseUtility.QuickBoolParse(v);
     }
     catch (Exception)
     {
         p.value = false;
     }
     return(p);
 }