예제 #1
0
파일: DBNullable.cs 프로젝트: radtek/datawf
        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
파일: DBNullable.cs 프로젝트: radtek/datawf
 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));
 }