using System.Collections;
using System.Globalization;
using System.Runtime.InteropServices;
+#if !FULL_AOT_RUNTIME
using System.Reflection.Emit;
-
+#endif
+using System.Collections.Generic;
namespace System.Reflection {
-#if NET_4_0 || MOONLIGHT
+#if NET_4_0
[ComVisible (true)]
[ComDefaultInterfaceAttribute (typeof (_Assembly))]
[Serializable]
public partial class Assembly {
#endif
public
-#if NET_4_0 || MOONLIGHT
+#if NET_4_0
override
#endif
Type GetType (string name, bool throwOnError, bool ignoreCase)
throw new ArgumentException ("name", "Name cannot be empty");
res = InternalGetType (null, name, throwOnError, ignoreCase);
-#if !(NET_4_0 || MOONLIGHT)
+#if !NET_4_0 && !FULL_AOT_RUNTIME
if (res is TypeBuilder) {
if (throwOnError)
throw new TypeLoadException (string.Format ("Could not load type '{0}' from assembly '{1}'", name, this));
}
public
-#if NET_4_0 || MOONLIGHT
+#if NET_4_0
override
#endif
Module GetModule (String name)
}
public
-#if NET_4_0 || MOONLIGHT
+#if NET_4_0
override
#endif
AssemblyName[] GetReferencedAssemblies () {
}
public
-#if NET_4_0 || MOONLIGHT
+#if NET_4_0
override
#endif
Module[] GetModules (bool getResourceModules) {
Module[] modules = GetModulesInternal ();
if (!getResourceModules) {
- ArrayList result = new ArrayList (modules.Length);
+ var result = new List<Module> (modules.Length);
foreach (Module m in modules)
if (!m.IsResource ())
result.Add (m);
- return (Module[])result.ToArray (typeof (Module));
+ return result.ToArray ();
}
else
return modules;
[MonoTODO ("Always returns the same as GetModules")]
public
-#if NET_4_0 || MOONLIGHT
+#if NET_4_0
override
#endif
Module[] GetLoadedModules (bool getResourceModules)
}
public
-#if NET_4_0 || MOONLIGHT
+#if NET_4_0
override
#endif
Assembly GetSatelliteAssembly (CultureInfo culture)
}
public
-#if NET_4_0 || MOONLIGHT
+#if NET_4_0
override
#endif
Assembly GetSatelliteAssembly (CultureInfo culture, Version version)
//FIXME remove GetManifestModule under v4, it's a v2 artifact
[ComVisible (false)]
public
-#if NET_4_0 || MOONLIGHT
+#if NET_4_0
override
#endif
Module ManifestModule {
}
}
-#if !MOONLIGHT
public
#if NET_4_0
override
return get_global_assembly_cache ();
}
}
-#endif
-
}
}