Click or drag to resize

CopyContextUpdateReferenceT Method

Updates a given reference, returning a reference to use in its place. The default implementation of this method looks for a mapping for this object that was added with AddObjectMappingT(T, T). If one is found, the object to which the specified one is mapped is returned. If one is not found, this method returns the object that was passed to it. Derived classes can override this default behavior.

Namespace:  AGI.Foundation.Infrastructure
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public virtual T UpdateReference<T>(
	T oldObject
)
where T : class

Parameters

oldObject
Type: T
The old reference to update.

Type Parameters

T
The type of the object reference.

Return Value

Type: T
The updated reference.
See Also