AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

XmlCompareUtil..::..GetDifferences Method

Returns a list of human-readable difference descriptions between a and b, post-prune. Empty list when the trees are equivalent.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static List<string> GetDifferences(
	XElement a,
	XElement b,
	string sourceName,
	string targetName,
	Type ownerTypeForFriendlyNames
)

Parameters

a
Type: XElement
The source tree.
b
Type: XElement
The target tree.
sourceName
Type: String
Display name for the source tree.
targetName
Type: String
Display name for the target tree.
ownerTypeForFriendlyNames
Type: Type
Optional. When non-null, the util reflects on this type for DisplayAttribute on the property matching each diff key, and uses that for diff labels. When null, raw element names are used.

Return Value

A list of difference descriptions. Empty when the trees match.