Closed mkrueger closed 8 years ago
+1 for making the OptionSet more useful.
Use case In the codeformatter project [https://github.com/dotnet/codeformatter], the code in the project is formatted using the standard Roslyn formatter. This formatter however uses the default formatting options, e.g. "Open Brace on New Line for types", unless you supply an OptionSet, however there is currently no way to instantiate that class since the constructor is internal and the class is sealed.
Pulling into 1.2, as this is something that we're looking at related to #7071 (like #7058 and #7059).
Let's actually use #7058 to track this.
-Why it's not possible to create own option sets or provide option services ?
In general the option API seems to be tailored for a 'read only' use.