copySerialisableObject<T extends ISerialisable> static method

T copySerialisableObject<T extends ISerialisable>(
  1. T serialisableObject,
  2. 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);
}