Beispiel #1
0
 [Test] public void DeepClone()
 => CloneUtil.DeepClone(new Eradicator());
Beispiel #2
0
 [Test] public void DeepCloneThrows()
 => Assert.Throws <SerializationException>(
     () => CloneUtil.DeepClone(new NotSerializable()));
Beispiel #3
0
 T Clone() => (proto is Clonable <T> src)
 ? src.Clone(state ?? src.Allocate())
 : CloneUtil.DeepClone(proto);