Closed mponton closed 8 years ago
Nope, it is supposed to create a deep copy. I'm almost finished with on the fix, you'll have it available in the development branch today
You have the fixes available in the develop branch
Wow, thank you so much for the quick fix!
And again, thanks for the project too, very much appreciated.
Very much appreciated indeed. BTW, author, can you tell if I'm doing anything wrong (Lines 279/396)? It's just that the code feels messy, feels like it could be simplified. Sorry if too much off topic.
My .NET knowledge is quite limited and I'm using your library with PowerShell (thanks!).
I noticed that when I
Clone()
thenMerge()
a section, theMerge()
affects the original SectionData object. I'm not sure if an issue or my lack of understanding of theClone()
method. For example, assuming this INI file:And this code:
A.Recurse
will beFalse
as expected, butB.Recurse
will ALSO beFalse
(where I would have expected it to beTrue
, from theDEFAULT
section, since it is not present in theB
section.If this is normal behavior, do you have any suggestion to accomplish this? (e.g. merge a section with some default settings in a loop to have a final set of settings specific to that section)
Thanks and regards,
Marco