MarcinJuraszek / CloneExtensions

Clone extension method library. Performs fast, deep or shallow clone using simple assignment operations generated by Expression Tree runtime code compilation.
Apache License 2.0
115 stars 30 forks source link

Is it supports clone to existing object? #36

Open GF-Huang opened 2 years ago

GF-Huang commented 2 years ago
var source = new A() { Property = "A" };
var destination = new A();

source.ShallowCloneTo(destination);
MarcinJuraszek commented 2 years ago

No. That's not a supported scenario.