public virtual void WriteObject(ITypeHandler4 handler, object obj) { MarshallingContextState state = CurrentState(); WriteObjectWithCurrentState(handler, obj); RestoreState(state); }
public virtual void RestoreState(MarshallingContextState state) { _currentBuffer = state._buffer; }