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 <jbevain@gmail.com>2014-11-02 19:34:41 +0300
committerJb Evain <jbevain@gmail.com>2014-11-02 20:38:31 +0300
commit9c2281e6784c59fe961fd9a83c280c09740f2afe (patch)
tree33b199e2cbff896f44feef343243e78528380022 /symbols/pdb/Test/Mono.Cecil.Tests
parenta64f56117305b4b7943298b38913bdf94e9f1fb6 (diff)
Update to ImportReference methods
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 7d0072e..7eccd0c 100644
--- a/symbols/pdb/Test/Mono.Cecil.Tests/PdbTests.cs
+++ b/symbols/pdb/Test/Mono.Cecil.Tests/PdbTests.cs
@@ -124,10 +124,10 @@ namespace Mono.Cecil.Tests {
public void CreateMethodFromScratch ()
{
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;
@@ -135,7 +135,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);