Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jb@evain.net>2015-04-25 12:51:49 +0300
committerJb Evain <jb@evain.net>2015-04-25 12:51:49 +0300
commit3a0fbb88ac7762ef4f00c8ecbddd67b1af72ab0a (patch)
treea0fc2fac92307e3121b87556b0cc3741b5e21e99 /symbols/pdb/Test/Mono.Cecil.Tests
parentc30e727490dcfe850ac01c5db9eaf744f88fa4e1 (diff)
parent654abda6e3e3de45368f608c9cab36234807179c (diff)
Merge branch 'importer'
Diffstat (limited to 'symbols/pdb/Test/Mono.Cecil.Tests')
-rw-r--r--symbols/pdb/Test/Mono.Cecil.Tests/PdbTests.cs6
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);