public ReflectionImporter (ModuleContainer module, BuiltinTypes builtin)
: base (module)
{
+ IgnoreCompilerGeneratedField = false;
+
Initialize (builtin);
}
//
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 assembly, bool isImplicitReference)