Browse Source

translate castclass instruction

pull/728/head
Siegfried Pammer 10 years ago
parent
commit
4e42a0a77a
  1. 5
      ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

5
ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

@ -679,6 +679,11 @@ namespace ICSharpCode.Decompiler.CSharp
.WithILInstruction(inst) .WithILInstruction(inst)
.WithRR(new ConversionResolveResult(obj, arg.ResolveResult, Conversion.BoxingConversion)); .WithRR(new ConversionResolveResult(obj, arg.ResolveResult, Conversion.BoxingConversion));
} }
protected internal override TranslatedExpression VisitCastClass(CastClass inst)
{
return Translate(inst.Argument).ConvertTo(inst.Type, this);
}
protected override TranslatedExpression Default(ILInstruction inst) protected override TranslatedExpression Default(ILInstruction inst)
{ {

Loading…
Cancel
Save