in DTDLValidator/DTDLValidator/Interactive/CompareCommand.cs [155:167]
public bool Equals(DTPropertyInfo x, DTPropertyInfo 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.Schema == y.Schema;
}