public bool Equals()

in DTDLValidator/DTDLValidator/Interactive/CompareCommand.cs [193:205]


        public bool Equals(DTRelationshipInfo x, DTRelationshipInfo y)
        {

            //Check whether the compared objects reference the same data.
            if (Object.ReferenceEquals(x, y)) return true;

            //Check whether any of the compared objects is null.
            if (Object.ReferenceEquals(x, null) || Object.ReferenceEquals(y, null))
                return false;

            //Check whether the products' properties are equal.
            return x.Name == y.Name && x.Target == y.Target;
        }