|
|
|
@ -467,6 +467,7 @@ namespace ICSharpCode.Decompiler.CSharp
@@ -467,6 +467,7 @@ namespace ICSharpCode.Decompiler.CSharp
|
|
|
|
|
// Handle the required foreach-variable transformation:
|
|
|
|
|
switch (transformation) { |
|
|
|
|
case RequiredGetCurrentTransformation.UseExistingVariable: |
|
|
|
|
if (foreachVariable.Type.Kind != TypeKind.Dynamic) |
|
|
|
|
foreachVariable.Type = type; |
|
|
|
|
foreachVariable.Kind = VariableKind.ForeachLocal; |
|
|
|
|
foreachVariable.Name = AssignVariableNames.GenerateForeachVariableName(currentFunction, collectionExpr.Annotation<ILInstruction>(), foreachVariable); |
|
|
|
|