示例#1
0
 [Test] public void DeepClone()
 => CloneUtil.DeepClone(new Eradicator());
示例#2
0
 [Test] public void DeepCloneThrows()
 => Assert.Throws <SerializationException>(
     () => CloneUtil.DeepClone(new NotSerializable()));
示例#3
0
文件: Dish.cs 项目: r2d2m/xgoap
 T Clone() => (proto is Clonable <T> src)
 ? src.Clone(state ?? src.Allocate())
 : CloneUtil.DeepClone(proto);