Browse Source

castclass

pull/1/head^2
David Srbecký 18 years ago
parent
commit
eaa7a63343
  1. 2
      bin/Debug/output.cs
  2. 4
      src/AstMetodBodyBuilder.cs

2
bin/Debug/output.cs

@ -75,7 +75,7 @@ namespace Reversi @@ -75,7 +75,7 @@ namespace Reversi
@this.Controls.Add((@this.okButton));
@this.Controls.Add((@this.iconPictureBox));
@this.FormBorderStyle = 3;
@this.Icon = (IL__castclass(System.Drawing.Icon, (V_0.GetObject("$this.Icon"))));
@this.Icon = ((System.Drawing.Icon)(V_0.GetObject("$this.Icon")));
@this.MaximizeBox = 0;
@this.MinimizeBox = 0;
@this.Name = "AboutDialog";

4
src/AstMetodBodyBuilder.cs

@ -406,7 +406,7 @@ namespace Decompiler @@ -406,7 +406,7 @@ namespace Decompiler
);
}
case Code.Calli: throw new NotImplementedException();
case Code.Castclass: throw new NotImplementedException();
case Code.Castclass: return new Ast.CastExpression(operandAsTypeRef, arg1, CastType.Cast);
case Code.Ckfinite: throw new NotImplementedException();
case Code.Constrained: throw new NotImplementedException();
case Code.Cpblk: throw new NotImplementedException();
@ -466,7 +466,7 @@ namespace Decompiler @@ -466,7 +466,7 @@ namespace Decompiler
case Code.Ldtoken:
if (operand is Cecil.TypeReference) {
return new Ast.MemberReferenceExpression(
new Ast.TypeOfExpression(new Ast.TypeReference(((Cecil.TypeReference)operand).FullName)),
new Ast.TypeOfExpression(operandAsTypeRef),
"TypeHandle"
);
} else {

Loading…
Cancel
Save