private void DemoGlobalConfiguration() { ObjectComparer.Configure(c => c .IncludePublicProperties() .IncludePublicFields() ); var objB = new ClassB(); var objC = new ClassC(); var result = ObjectComparer.Compare(objB, objC); Console.WriteLine($"Result:{result.AreEqual}"); Console.WriteLine(result.AggregateAllMessages()); Console.WriteLine(); }