greuelpirat / DeepCopy

Inject deep copy constructors into C# types
MIT License
13 stars 3 forks source link

Classes with Dictionary properties #16

Closed greuelpirat closed 5 years ago

greuelpirat commented 5 years ago

this does not work:

[AddDeepCopyConstructor]
public class ClassWithDerivedProperties
{
    public DictionaryClass Dictionary { get; set; }
}

[AddDeepCopyConstructor]
public class DictionaryClass : Dictionary<string, SomeObject>
{
    public SomeObject SomeProperty { get; set; }
}