Exemple #1
0
        public override BooleanValue readValue(ValueFields valueFields)
        {
            bool?boolValue = null;
            long?longValue = valueFields.LongValue;

            if (longValue != null)
            {
                boolValue = longValue.Equals(TRUE);
            }

            return(Variables.booleanValue(boolValue));
        }
Exemple #2
0
 public virtual BooleanValue convertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(Variables.booleanValue((bool?)untypedValue.Value, untypedValue.Transient));
 }