DeepCopy icon indicating copy to clipboard operation
DeepCopy copied to clipboard

Simple & efficient library for deep copying .NET objects

Results 7 DeepCopy issues
Sort by recently updated
recently updated
newest added

I have a series of tests that I run and build against net6.0, net5.0 and netcoreapp3.1 but DeepCopy is only failing on net6.0 This issue seems to be around trying...

Demo Code: ```C# var originalArray = new string[] { "123", "hello!" }; var resultArray = DeepCopier.Copy((object)original); Assert.Equal(originalArray, resultArray); Assert.NotSame(originalArray, resultArray); ``` Stace Trace: > System.ArgumentException : Cannot bind to the...

Reuben, I found your project via Marcin Juraszek, the author of CloneExtensions. I have spent sometime reviewing your work (which I found very interesting) and updating my own project with...

```C# private class MyClass { } [Fact] public void CopyObjectHashSet() { HashSet original = new HashSet(); original.Add(new MyClass()); var result = DeepCopier.Copy(original); Assert.NotSame(original, result); foreach (MyClass myClass in result) {...

```cs private class MyClass { public readonly ICollection Collection = new List(); } [Fact] public void CanCopyInterfaceField() { MyClass original = new MyClass(); original.Collection.Add("A"); var result = DeepCopier.Copy(original); Assert.NotSame(original, result);...

What I really want is something like F# records. Those a helpful feature called Copy and Update Expressions: ```F# type Person = { FirstName: string LastName: string Email: string }...

In some cases need to copy class contains "Type" fields, it breaks the app!