protected bool Equals(Pyramid <T> other) { return(EqualityComparer <T> .Default.Equals(Value, other.Value) && Left.Equals(other.Left) && Right.Equals(other.Right)); }
public Pyramid([NotNull] Pyramid <T> left, T value) { Value = value; Left = new Option <Pyramid <T> >(left); Right = Option <Pyramid <T> > .None; }
public Pyramid(T value, [NotNull] Pyramid <T> right) { Value = value; Left = Option <Pyramid <T> > .None; Right = new Option <Pyramid <T> >(right); }
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); }