Beispiel #1
0
 public bool Equals([AllowNull] DryObject <T> other)
 {
     return
         (this.func.Equals(other.func) &&
          this.value.Equals(other.value) &&
          this.hasValue.Equals(other.hasValue));
 }
Beispiel #2
0
 public FAnyOf(DryObject <T> item1, DryObject <T> item2, DryObject <T> item3)
 {
     this.item1 = item1;
     this.item2 = item2;
     this.item3 = item3;
     this.item4 = item3;
     this.item5 = item3;
     this.item6 = item3;
     this.item7 = item3;
 }
Beispiel #3
0
        public int CompareTo([AllowNull] DryObject <T> other)
        {
            if (this.hasValue && !other.hasValue)
            {
                return(1);
            }
            if (!this.hasValue && other.hasValue)
            {
                return(-1);
            }
            if (!this.hasValue && !other.hasValue)
            {
                return(0);
            }

            return
                (this.value.CompareTo(other.value));
        }
Beispiel #4
0
 public static FAnyOf <T> FAnyOf <T>(DryObject <T> item1, DryObject <T> item2, DryObject <T> item3) where T : IComparable <T>, IEquatable <T>
 {
     return(new FAnyOf <T>(item1, item2, item3));
 }