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

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

Produces a list of differences between this object and obj after stripping framework-owned nodes and empty ones — used to show users what changed between two versions of the same record.

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

Syntax


protected internal List<string> GetDifferences<T>(
	T obj,
	string sourceName,
	string targetName
)
where T : BusinessObjectBase

Type Parameters

T
Concrete business-object type.

Parameters

obj
Type: T
The other object to compare against.
sourceName
Type: String
Display name for the current object.
targetName
Type: String
Display name for the other object.

Return Value

A list of difference descriptions. Empty when the two are equivalent.