We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If DecompilerSettings.ForEachStatement is set to false then foreach statements are not recreated. So e.g. in ParallelAlgorithn instead of:
DecompilerSettings.ForEachStatement
false
ParallelAlgorithn
for (int i = 0; i < MaxDegreeOfParallelism; i++) { output += tasks[i].Result; }
We could write:
foreach (var task in tasks) { output += task.Result; }
This is then decompiled into something like this (after const substitution):
int i = 0; while (i< 280) { Task<int> task; task = array[i]; output = output + task.Result; i = i + 1; }
The Task<int> variable declaration and the .Result access need special support, otherwise, this is already supported.
Task<int>
.Result
Jira issue
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If
DecompilerSettings.ForEachStatement
is set tofalse
then foreach statements are not recreated. So e.g. inParallelAlgorithn
instead of:We could write:
This is then decompiled into something like this (after const substitution):
The
Task<int>
variable declaration and the.Result
access need special support, otherwise, this is already supported.Jira issue
The text was updated successfully, but these errors were encountered: