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
Public Overridable Function UpdateReference(Of T As Class) (
oldObject As T
) As T
public:
generic<typename T>
where T : ref class
virtual T UpdateReference(
T oldObject
)
abstract UpdateReference :
oldObject : 'T -> 'T when 'T : not struct
override UpdateReference :
oldObject : 'T -> 'T when 'T : not struct
Parameters
- oldObject
- Type: T
The old reference to update.
Type Parameters
- T
- The type of the object reference.
Return Value
Type:
TThe updated reference.
See Also