コード例 #1
0
        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;
        }
コード例 #2
0
 public static BoolWord ToBoolWord(this Boolean value, EBoolWordStyle boolWordType = EBoolWordStyle.TrueFalse)
 {
     return(new BoolWord(value, boolWordType));
 }
コード例 #3
0
 public BoolWord(Boolean value, EBoolWordStyle wordStyle = EBoolWordStyle.TrueFalse)
 {
     _value   = value;
     _default = false;
     _style   = wordStyle;
 }