3F / MvsSln

🧩 Customizable VisualStudio .sln parser with project support (.vcxproj, .csproj., …). Pluggable lightweight r/w handlers at runtime, and more …
MIT License
135 stars 27 forks source link

Unlock public collections for modifications #9

Open 3F opened 5 years ago

3F commented 5 years ago

Currently we're using some abstraction for enumeration of parsed items (projects, folders, dependencies, all others or most of this).

But v2 provides now analyzed map for some user modifications.

Basically,

Unlocking will give us more quick and convenient way for updating data. Because today's modifications mostly looks like extending its initial data, for example ~

var folders = new List<SolutionFolder>(sln.Result.SolutionFolders)

But to keep it clean, more probably we also need to provide some information about modified state if it was.

What about simply flag state via our wrapped collection ? where add/remove/or even changing value of available items will expose an dirty state after its initial parsing ?

Option 1

draft

Option 2

draft

Please feedback before my some final decision!