Beispiel #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);
        }
Beispiel #2
0
 public override void Set(short block, short blockIndex, object value)
 {
     SetValue(block, blockIndex, DBNullable <T> .CheckNull(value));
 }
Beispiel #3
0
 public bool Equals(DBNullable <T> other)
 {
     return(notNull.Equals(other.notNull) && (notNull ? value.Equals(other.value) : true));
 }
Beispiel #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));
 }