public override bool Equals(object obj) { if (obj == null || obj == DBNull.Value) { return(false); } PathCard cp = (PathCard)obj; return(PathTree.Equals(Parent, cp.Parent) && int.Equals(Code, cp.Code)); }
public static bool Equals(PathCardN a, PathCardN b) { if (a == null || b == null) { return(false); } if (a.CodeN != b.CodeN) { return(false); } return(PathTree.Equals(a.Parent, b.Parent)); }