public static bool Equals(TemplateContext context, KalkExpression left, KalkExpression right) { if (ReferenceEquals(null, right)) { return(false); } if (ReferenceEquals(left, right)) { return(true); } return(right.GetType() == left.GetType() && left.EqualsImpl(context, right)); }