diff options
author | Jb Evain <jbevain@gmail.com> | 2015-04-30 12:26:32 +0300 |
---|---|---|
committer | Jb Evain <jbevain@gmail.com> | 2015-04-30 12:26:32 +0300 |
commit | 0222c93ba60e830290fe2a3695f5e6b2aa007896 (patch) | |
tree | 503b6cac9f4a59312a5597e9901d5c59b64e4e86 | |
parent | 9fd92b50e1ed1f0e9e78231736dc117c34b50852 (diff) |
Rename Corlib to CoreLibrary in public symbols
-rw-r--r-- | Mono.Cecil/ModuleDefinition.cs | 2 | ||||
-rw-r--r-- | Mono.Cecil/TypeSystem.cs | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Mono.Cecil/ModuleDefinition.cs b/Mono.Cecil/ModuleDefinition.cs index deb0098..d78bcb0 100644 --- a/Mono.Cecil/ModuleDefinition.cs +++ b/Mono.Cecil/ModuleDefinition.cs @@ -1107,7 +1107,7 @@ namespace Mono.Cecil { return self != null && self.HasImage; } - public static bool IsCorlib (this ModuleDefinition module) + public static bool IsCoreLibrary (this ModuleDefinition module) { if (module.Assembly == null) return false; diff --git a/Mono.Cecil/TypeSystem.cs b/Mono.Cecil/TypeSystem.cs index da807e7..3ab6fe0 100644 --- a/Mono.Cecil/TypeSystem.cs +++ b/Mono.Cecil/TypeSystem.cs @@ -166,7 +166,7 @@ namespace Mono.Cecil { internal static TypeSystem CreateTypeSystem (ModuleDefinition module) { - if (module.IsCorlib ()) + if (module.IsCoreLibrary ()) return new CoreTypeSystem (module); return new CommonTypeSystem (module); @@ -197,7 +197,12 @@ namespace Mono.Cecil { } } + [Obsolete ("Use CoreLibrary")] public IMetadataScope Corlib { + get { return CoreLibrary; } + } + + public IMetadataScope CoreLibrary { get { var common = this as CommonTypeSystem; if (common == null) |