Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 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));
 }