copySerialisableObject<T extends ISerialisable> static method
T
copySerialisableObject<T extends ISerialisable>(
- T serialisableObject,
- IUnmarshalFactory<
T> objFactory
Util method for copying serialisable objects via serialisation/deserialisation cycle.
Implementation
static T copySerialisableObject<T extends ISerialisable>(T serialisableObject, IUnmarshalFactory<T> objFactory)
{
MarshalledObject marshalled = _getDeepClonedEncodedObject(serialisableObject);
return objFactory(marshalled);
}