Browse Source

Fixed assignments to static fields.

pull/10/head
Daniel Grunwald 15 years ago
parent
commit
1f6e2a4106
  1. 2
      ICSharpCode.Decompiler/Ast/AstMetodBodyBuilder.cs

2
ICSharpCode.Decompiler/Ast/AstMetodBodyBuilder.cs

@ -612,7 +612,7 @@ namespace Decompiler
return new AssignmentExpression( return new AssignmentExpression(
AstBuilder.ConvertType(((FieldReference)operand).DeclaringType) AstBuilder.ConvertType(((FieldReference)operand).DeclaringType)
.Member(((FieldReference)operand).Name).WithAnnotation(operand), .Member(((FieldReference)operand).Name).WithAnnotation(operand),
arg2); arg1);
case Code.Ldflda: case Code.Ldflda:
case Code.Ldsflda: throw new NotImplementedException(); case Code.Ldsflda: throw new NotImplementedException();
case Code.Ldftn: throw new NotImplementedException(); case Code.Ldftn: throw new NotImplementedException();

Loading…
Cancel
Save