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>2015-05-11 16:28:56 +0300
committerJb Evain <jbevain@gmail.com>2015-05-11 16:28:56 +0300
commit84dbccaddff1962d40288fb1c4c6f8bbf90cab09 (patch)
treedb5b571ae04d183ad2aab1b73bf31c8480c8864c
parent4cb28458c7bd61449b2814920acbf9fe3835be30 (diff)
Switch from Corlib to CoreLibrary
-rw-r--r--Mono.Cecil/AssemblyReader.cs2
-rw-r--r--Mono.Cecil/TypeParser.cs2
-rw-r--r--Test/Mono.Cecil.Tests/TypeParserTests.cs8
3 files changed, 6 insertions, 6 deletions
diff --git a/Mono.Cecil/AssemblyReader.cs b/Mono.Cecil/AssemblyReader.cs
index 853c593..ee667cb 100644
--- a/Mono.Cecil/AssemblyReader.cs
+++ b/Mono.Cecil/AssemblyReader.cs
@@ -2288,7 +2288,7 @@ namespace Mono.Cecil {
var type_system = module.TypeSystem;
var context = new MethodReference (string.Empty, type_system.Void);
- context.DeclaringType = new TypeReference (string.Empty, string.Empty, module, type_system.Corlib);
+ context.DeclaringType = new TypeReference (string.Empty, string.Empty, module, type_system.CoreLibrary);
var member_references = new MemberReference [length];
diff --git a/Mono.Cecil/TypeParser.cs b/Mono.Cecil/TypeParser.cs
index 36bc6c3..f876070 100644
--- a/Mono.Cecil/TypeParser.cs
+++ b/Mono.Cecil/TypeParser.cs
@@ -368,7 +368,7 @@ namespace Mono.Cecil {
static IMetadataScope GetMetadataScope (ModuleDefinition module, Type type_info)
{
if (string.IsNullOrEmpty (type_info.assembly))
- return module.TypeSystem.Corlib;
+ return module.TypeSystem.CoreLibrary;
return MatchReference (module, AssemblyNameReference.Parse (type_info.assembly));
}
diff --git a/Test/Mono.Cecil.Tests/TypeParserTests.cs b/Test/Mono.Cecil.Tests/TypeParserTests.cs
index 6b52e98..f9ad509 100644
--- a/Test/Mono.Cecil.Tests/TypeParserTests.cs
+++ b/Test/Mono.Cecil.Tests/TypeParserTests.cs
@@ -12,7 +12,7 @@ namespace Mono.Cecil.Tests {
public void SimpleStringReference ()
{
var module = GetCurrentModule ();
- var corlib = module.TypeSystem.Corlib;
+ var corlib = module.TypeSystem.CoreLibrary;
const string fullname = "System.String";
@@ -31,7 +31,7 @@ namespace Mono.Cecil.Tests {
public void SimpleInt32Reference ()
{
var module = GetCurrentModule ();
- var corlib = module.TypeSystem.Corlib;
+ var corlib = module.TypeSystem.CoreLibrary;
const string fullname = "System.Int32";
@@ -66,7 +66,7 @@ namespace Mono.Cecil.Tests {
public void ByRefTypeReference ()
{
var module = GetCurrentModule ();
- var corlib = module.TypeSystem.Corlib;
+ var corlib = module.TypeSystem.CoreLibrary;
const string fullname = "System.String&";
@@ -105,7 +105,7 @@ namespace Mono.Cecil.Tests {
public void OpenGenericType ()
{
var module = GetCurrentModule ();
- var corlib = module.TypeSystem.Corlib;
+ var corlib = module.TypeSystem.CoreLibrary;
const string fullname = "System.Collections.Generic.Dictionary`2";