Skip to content

Instantly share code, notes, and snippets.

@ycherkes
Created April 11, 2024 12:55
Show Gist options
  • Save ycherkes/7ff3206cd70b396dc3ba70616392e84d to your computer and use it in GitHub Desktop.
Save ycherkes/7ff3206cd70b396dc3ba70616392e84d to your computer and use it in GitHub Desktop.
Compare-Net-Objects issue
CompareLogic compareLogic = new CompareLogic
{
Config = new ComparisonConfig
{
IgnoreConcreteTypes = true
}
};
var obj1 = new object();
var obj2 = new { Id = 1 };
var comparisonResult = compareLogic.Compare(obj1, obj2);
Assert.False(comparisonResult.AreEqual);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment