public ReflectionImporter (ModuleContainer module, BuiltinTypes builtin)
: base (module)
{
+ IgnoreCompilerGeneratedField = false;
+
Initialize (builtin);
}
{
// It can be used more than once when importing same assembly
// into 2 or more global aliases
- var definition = GetAssemblyDefinition (assembly);
+ GetAssemblyDefinition (assembly);
//
// This part tries to simulate loading of top-level
all_types = e.Types;
}
- ImportTypes (all_types, targetNamespace, definition.HasExtensionMethod);
+ ImportTypes (all_types, targetNamespace, true);
}
public ImportedModuleDefinition ImportModule (Module module, RootNamespace targetNamespace)
{
[System.Runtime.InteropServices.FieldOffset (0)]
int i;
+
+#pragma warning disable 414
[System.Runtime.InteropServices.FieldOffset (0)]
float f;
+#pragma warning restore 414
public static int SingleToInt32Bits (float v)
{
//
public bool Create (AppDomain domain, AssemblyBuilderAccess access)
{
-#if STATIC
+#if STATIC || FULL_AOT_RUNTIME
throw new NotSupportedException ();
#else
ResolveAssemblySecurityAttributes ();
default_references.Add ("System");
default_references.Add ("System.Xml");
-#if NET_2_1
+#if MOBILE
default_references.Add ("System.Net");
default_references.Add ("System.Windows");
default_references.Add ("System.Windows.Browser");
return Path.GetDirectoryName (typeof (object).Assembly.Location);
}
- public override bool HasObjectType (Assembly assembly)
+ public override Assembly HasObjectType (Assembly assembly)
{
- return assembly.GetType (compiler.BuiltinTypes.Object.FullName) != null;
+ return assembly.GetType (compiler.BuiltinTypes.Object.FullName) == null ? null : assembly;
}
- public override Assembly LoadAssemblyFile (string fileName)
- {
- return LoadAssemblyFile (fileName, false);
- }
-
- Assembly LoadAssemblyFile (string assembly, bool soft)
+ public override Assembly LoadAssemblyFile (string assembly, bool isImplicitReference)
{
Assembly a = null;
a = Assembly.Load (ass);
}
} catch (FileNotFoundException) {
- bool err = !soft;
+ bool err = !isImplicitReference;
foreach (string dir in paths) {
string full_path = Path.Combine (dir, assembly);
if (!assembly.EndsWith (".dll") && !assembly.EndsWith (".exe"))
return a;
}
- public override Assembly LoadAssemblyDefault (string fileName)
- {
- return LoadAssemblyFile (fileName, true);
- }
-
Module LoadModuleFile (AssemblyDefinitionDynamic assembly, string module)
{
string total_log = "";
}
}
}
-}
\ No newline at end of file
+}