The Close class does not override the GetHashCode() method, which may lead to unexpected behavior when using LINQ operations (e.g., Distinct(), GroupBy()) on PdfSubpath objects. For example, when comparing differences between two PDF versions, objects that should be considered equal might not be correctly identified due to inconsistent hash codes.
here.
Suggested Fix:
public override int GetHashCode()
{
return typeof(Close).GetHashCode();
}
Is this an intentional design choice or a potential bug?