コード例 #1
0
        object ICloneable.Clone()
        {
            // It's slow. So in case of requiring performance, override this deep clone method by your code.
            var clone = CloneUtil.MemoryClone(this) as StateBase;

            clone.Id = this.Id;
            return(clone);
        }
コード例 #2
0
 public T Clone <T>() where T : StateBase
 {
     return(CloneUtil.MemoryClone(this) as T);
 }
コード例 #3
0
 public virtual object Clone()
 {
     // It's slow. So in case of requiring performance, override this deep clone method by your code.
     return(CloneUtil.MemoryClone(this));
 }