Skip to content

Conversation

@lordmilko
Copy link
Contributor

I wish to provide my own custom IDecompilerTypeSystem to CSharpDecompiler. The existing constructor CSharpDecompiler(DecompilerTypeSystem typeSystem, DecompilerSettings settings) limits to you to specifying a value of the concrete DecompilerTypeSystem type, however this value is assigned to the typeSystem field which is of type IDecompilerTypeSystem. I did not see any restrictions that require that the IDecompilerTypeSystem that is used must either be of type DecompilerTypeSystem or SimpleCompilation (which DecompilerTypeSystem derives from) so I am proposing to modify the type of typeSystem constructor parameter to match the type of the field that it then assigns to

@siegfriedpammer siegfriedpammer merged commit 864ed63 into icsharpcode:master Aug 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants