public BoolWord(String value, EBoolWordStyle wordStyle = EBoolWordStyle.TrueFalse) { String trueValue = wordStyle.GetAlternateValue().KeepLeft(ValueLib.Comma.CharValue); _value = value.Equals(trueValue, StringComparison.OrdinalIgnoreCase); _default = false; _style = wordStyle; }
public static BoolWord ToBoolWord(this Boolean value, EBoolWordStyle boolWordType = EBoolWordStyle.TrueFalse) { return(new BoolWord(value, boolWordType)); }
public BoolWord(Boolean value, EBoolWordStyle wordStyle = EBoolWordStyle.TrueFalse) { _value = value; _default = false; _style = wordStyle; }