InvertedSoftware.WorkflowEngine.DataObjects.ProcessorJob.Clone C# (CSharp) Method

Clone() public method

public Clone ( ) : object
return object
        public object Clone()
        {
            object copy;
            using (MemoryStream ms = new MemoryStream())
            {
                BinaryFormatter bf = new BinaryFormatter();
                bf.Serialize(ms, this);
                ms.Flush();
                ms.Position = 0;
                copy = bf.Deserialize(ms);
            }
            return copy;
        }