AdvantageCMS.Core.Admin.BaseClasses Namespace
AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

BusinessObjectBase..::..CompareTopLevelElements<(Of <(<'T>)>)> Method

Compares the top-level children of two XML trees and returns a list of human-readable difference strings. Each string mentions the source and target names so the output is caller-friendly.

Namespace:  AdvantageCMS.Core.Admin.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


protected internal List<string> CompareTopLevelElements<T>(
	XElement root1,
	XElement root2,
	string source,
	string target
)
where T : BusinessObjectBase

Type Parameters

T
Concrete business-object type being compared.

Parameters

root1
Type: XElement
The source tree.
root2
Type: XElement
The target tree.
source
Type: String
Display name for the source tree.
target
Type: String
Display name for the target tree.

Return Value

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