CopyContextAddObjectMappingT Method |
Adds a mapping between an old object reference and a new one. The default implementation of
UpdateReferenceT(T) will substitute
newObject everywhere it encounters
oldObject.
Namespace:
AGI.Foundation.Infrastructure
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public void AddObjectMapping<T>(
T oldObject,
T newObject
)
where T : class
Public Sub AddObjectMapping(Of T As Class) (
oldObject As T,
newObject As T
)
public:
generic<typename T>
where T : ref class
void AddObjectMapping(
T oldObject,
T newObject
)
member AddObjectMapping :
oldObject : 'T *
newObject : 'T -> unit when 'T : not struct
Parameters
- oldObject
- Type: T
The old object reference. - newObject
- Type: T
The new object reference.
Type Parameters
- T
- The type of object to map.
See Also