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); }
public override void Set(short block, short blockIndex, object value) { SetValue(block, blockIndex, DBNullable <T> .CheckNull(value)); }
public bool Equals(DBNullable <T> other) { return(notNull.Equals(other.notNull) && (notNull ? value.Equals(other.value) : true)); }
public override void Set(int index, object value) { Helper.OneToTwoShift(index, out short block, out short blockIndex); SetValue(block, blockIndex, DBNullable <T> .CheckNull(value)); }