public virtual string ToString(XmlDifference difference)
        {
            var builder = new StringBuilder();

            this.Append(builder, difference);
            return(builder.ToString());
        }
예제 #2
0
        private bool HandleDifference(XmlCompareContext context, XmlComparison comparison)
        {
            var state = this.Analyzer.Analyze(comparison);

            context.SetState(state);

            if (state != XmlComparisonState.Equal)
            {
                var item = new XmlDifference(state, comparison);
                context.Differences.Add(item);
                return(this.Handler(context));
            }

            return(true);
        }
 protected virtual void Append(StringBuilder builder, XmlDifference difference)
 {
     this.Append(builder, difference.Difference);
 }