Esempio n. 1
0
        public int CompareTo(DBNullable <T> other)
        {
            var result = notNull.CompareTo(other.notNull);

            if (result == 0 && notNull)
            {
                result = ((IComparable <T>)value).CompareTo(other.value);
            }
            return(result);
        }
Esempio n. 2
0
 public override void Set(short block, short blockIndex, object value)
 {
     SetValue(block, blockIndex, DBNullable <T> .CheckNull(value));
 }
Esempio n. 3
0
 public bool Equals(DBNullable <T> other)
 {
     return(notNull.Equals(other.notNull) && (notNull ? value.Equals(other.value) : true));
 }
Esempio n. 4
0
 public override void Set(int index, object value)
 {
     Helper.OneToTwoShift(index, out short block, out short blockIndex);
     SetValue(block, blockIndex, DBNullable <T> .CheckNull(value));
 }