From ef2a2c41d74870df3bab6ec18c0d0e4f6b49254a Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 21 Mar 2015 19:25:50 +0100 Subject: [PATCH] fix TypeOfExpression translation --- ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs b/ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs index cb79b976c..0adc49150 100644 --- a/ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs +++ b/ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs @@ -172,7 +172,7 @@ namespace ICSharpCode.Decompiler.CSharp { return new TypeOfExpression(ConvertType(inst.Type)) .WithILInstruction(inst) - .WithRR(new TypeResolveResult(compilation.FindType(typeof(Type)))); + .WithRR(new TypeOfResolveResult(compilation.FindType(KnownTypeCode.Type), inst.Type); } protected internal override TranslatedExpression VisitLogicNot(LogicNot inst)