CompareObjects() публичный Метод

public CompareObjects ( IComparisonContext context, object source, object destination ) : ComparisonResult
context IComparisonContext
source object
destination object
Результат ComparisonResult
        public ComparisonResult Compare(IComparisonContext context, object value1, object value2)
        {
            if (!context.ShouldVisitObjects(value1, value2))
            {
                return(ComparisonResult.Pass);
            }

            var comparer = new ComplexObjectComparer(Inner, IgnoreUnmatchedProperties, IgnoredProperties);

            return(comparer.CompareObjects(context, value1, value2));
        }
        public (ComparisonResult result, IComparisonContext context) Compare(IComparisonContext context, object value1, object value2)
        {
            var comparer = new ComplexObjectComparer(Inner, IgnoreUnmatchedProperties, IgnoredProperties);

            return(comparer.CompareObjects(context, value1, value2));
        }