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