I’m keeping a dictionary with open documents and associated settings. I use the
DocumentIDs as the dictionary keys.
Unfortunately I’ve noticed that if a document is copied manually or saved using “Save as…” the new file will (of course) keep it’s document id.
This leads to trouble as I end up with the same key for multiple documents if I open both, the original and the copied file.
DocumentID property is private. I could probably change it via my new reflection skills. Is there any reason why I should not do this?