diff options
author | Jb Evain <jb@evain.net> | 2015-04-25 12:51:49 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2015-04-25 12:51:49 +0300 |
commit | 3a0fbb88ac7762ef4f00c8ecbddd67b1af72ab0a (patch) | |
tree | a0fc2fac92307e3121b87556b0cc3741b5e21e99 /symbols/pdb/Test/Mono.Cecil.Tests | |
parent | c30e727490dcfe850ac01c5db9eaf744f88fa4e1 (diff) | |
parent | 654abda6e3e3de45368f608c9cab36234807179c (diff) |
Merge branch 'importer'
Diffstat (limited to 'symbols/pdb/Test/Mono.Cecil.Tests')
-rw-r--r-- | symbols/pdb/Test/Mono.Cecil.Tests/PdbTests.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/symbols/pdb/Test/Mono.Cecil.Tests/PdbTests.cs b/symbols/pdb/Test/Mono.Cecil.Tests/PdbTests.cs index aee6f0b..f068458 100644 --- a/symbols/pdb/Test/Mono.Cecil.Tests/PdbTests.cs +++ b/symbols/pdb/Test/Mono.Cecil.Tests/PdbTests.cs @@ -126,10 +126,10 @@ namespace Mono.Cecil.Tests { IgnoreOnMono (); var module = ModuleDefinition.CreateModule ("Pan", ModuleKind.Dll); - var type = new TypeDefinition ("Pin", "Pon", TypeAttributes.Public | TypeAttributes.Abstract | TypeAttributes.Sealed, module.Import (typeof (object))); + var type = new TypeDefinition ("Pin", "Pon", TypeAttributes.Public | TypeAttributes.Abstract | TypeAttributes.Sealed, module.ImportReference (typeof (object))); module.Types.Add (type); - var method = new MethodDefinition ("Pang", MethodAttributes.Public | MethodAttributes.Static, module.Import (typeof (string))); + var method = new MethodDefinition ("Pang", MethodAttributes.Public | MethodAttributes.Static, module.ImportReference (typeof (string))); type.Methods.Add (method); var body = method.Body; @@ -137,7 +137,7 @@ namespace Mono.Cecil.Tests { body.InitLocals = true; var il = body.GetILProcessor (); - var temp = new VariableDefinition ("temp", module.Import (typeof (string))); + var temp = new VariableDefinition ("temp", module.ImportReference (typeof (string))); body.Variables.Add (temp); il.Emit (OpCodes.Nop); |