Copying NetworkDataObjects using with { } syntax is problematic for nested NetworkDataObjects, as the nested ones have their references copied, breaking the single-ownership rules. NetworkDataObjects need to be converted to regular classes, and have some built in utility to clone them via serialization.
Copying NetworkDataObjects using
with { }syntax is problematic for nested NetworkDataObjects, as the nested ones have their references copied, breaking the single-ownership rules. NetworkDataObjects need to be converted to regular classes, and have some built in utility to clone them via serialization.