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:
Diffstat (limited to 'Mono.Cecil/Import.cs')
-rw-r--r--Mono.Cecil/Import.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/Mono.Cecil/Import.cs b/Mono.Cecil/Import.cs
index 11a5019..772794d 100644
--- a/Mono.Cecil/Import.cs
+++ b/Mono.Cecil/Import.cs
@@ -38,6 +38,12 @@ namespace Mono.Cecil {
readonly ModuleDefinition module;
+ public MetadataImporter (ModuleDefinition module)
+ {
+ this.module = module;
+ }
+
+#if !CF
static readonly Dictionary<Type, ElementType> type_etype_mapping = new Dictionary<Type, ElementType> {
{ typeof (void), ElementType.Void },
{ typeof (bool), ElementType.Boolean },
@@ -59,11 +65,6 @@ namespace Mono.Cecil {
{ typeof (object), ElementType.Object },
};
- public MetadataImporter (ModuleDefinition module)
- {
- this.module = module;
- }
-
public TypeReference ImportType (Type type, IGenericContext context)
{
if (IsTypeSpecification (type))
@@ -296,6 +297,7 @@ namespace Mono.Cecil {
{
return (method.CallingConvention & conventions) != 0;
}
+#endif
static readonly Dictionary<string, ElementType> string_etype_mapping = new Dictionary<string, ElementType> {
{ "Void", ElementType.Void },