public override int GetHashCode() { if (Ptr != null) { return Ptr.GetHashCode(); } return base.GetHashCode(); }