Cloneable icon indicating copy to clipboard operation
Cloneable copied to clipboard

Auto generate Clone method using C# Source Generator

Results 11 Cloneable issues
Sort by recently updated
recently updated
newest added

If you want to copy an object with nested objects the generated code would to something like this: ... MyObjectProperty = this.MyObjectProperty This would only copy the reference of the...

Hi! Would like to use this package but without support for collections it's somewhat annoying to clone. I have implemented most of the support for collections in my fork but...

please add support for records, now this wont do anything ``` [Cloneable.Cloneable] public partial record Foo(string Bar); ```

Currently, there is no license information available in this project. Is this MIT licensed? Would it be possible to add a `LICENSE.md` to clarify? :)

With respect to issue #11: I took the liberty to create a pull request that adds an MIT license. I only know your github handle, so feel free to edit...

The following code fails to compile. ```cs namespace A1 { [Cloneable.Cloneable] public partial class C { public int X { get; set; } } } namespace A2 { [Cloneable.Cloneable] public...

I found that if an object contains a list (like List), then nothing from it gets copied. For the sample, I found if the parent has a count of 3...

Does this support list clone? ```cs [Clonable] public partial class ListItem { public int Key {get; set;} } [Clonable] public partial class WithList { public List KeyItemList {get; set;} =...

I have this model ```cs class Foo { public Foo(int prop) { Prop = prop; } public int Prop {get;} public string Str {get;set;} } ``` the generated method calls...

This should address #5 in a basic form. I've added to the sample as well, and added to the ability to use the debugging features of the more recent VS...