示例#1
0
 protected bool Equals(Pyramid <T> other)
 {
     return(EqualityComparer <T> .Default.Equals(Value, other.Value) && Left.Equals(other.Left) &&
            Right.Equals(other.Right));
 }
示例#2
0
 public Pyramid([NotNull] Pyramid <T> left, T value)
 {
     Value = value;
     Left  = new Option <Pyramid <T> >(left);
     Right = Option <Pyramid <T> > .None;
 }
示例#3
0
 public Pyramid(T value, [NotNull] Pyramid <T> right)
 {
     Value = value;
     Left  = Option <Pyramid <T> > .None;
     Right = new Option <Pyramid <T> >(right);
 }
示例#4
0
 public Pyramid([NotNull] Pyramid <T> left, T value, [NotNull] Pyramid <T> right)
 {
     Value = value;
     Left  = new Option <Pyramid <T> >(left);
     Right = new Option <Pyramid <T> >(right);
 }