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); }
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); }