[Serializable]
[ClassInterface(ClassInterfaceType.None)]
#if NET_2_1
- public class Assembly : ICustomAttributeProvider, _Assembly {
-#else
+ public partial class Assembly : ICustomAttributeProvider, _Assembly {
+#elseif NET_4_0
public class Assembly : ICustomAttributeProvider, _Assembly, IEvidenceFactory, ISerializable {
+#else
+ public partial class Assembly : ICustomAttributeProvider, _Assembly, IEvidenceFactory, ISerializable {
#endif
-
internal class ResolveEventHolder {
public event ModuleResolveEventHandler ModuleResolve;
}
private bool fromByteArray;
private string assemblyName;
- internal Assembly ()
+#if NET_4_0
+ protected
+#else
+ internal
+#endif
+ Assembly ()
{
resolve_event_holder = new ResolveEventHolder ();
}
+2010-03-24 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * Assembly.cs: Make it a partial class under !v4.
+
+ * MonoAssembly.cs: New type that exists only under
+ v4. Under v2 it is a part of Assembly.
+
+ This is the initial setup to make v4 Assembly an
+ abstract type where all methods raise exceptions.
+
2010-03-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MethodInfo.cs: Exclude IsGenericMethod* and ContainsGenericParameters
--- /dev/null
+//
+// System.Reflection/MonoAssembly.cs
+//
+// Author:
+// Rodrigo Kumpera (rkumpera@novell.com)
+//
+// Copyright (C) 2010 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace System.Reflection {
+
+#if NET_4_0
+ [ComVisible (true)]
+ [ComDefaultInterfaceAttribute (typeof (_Assembly))]
+ [Serializable]
+ [ClassInterface(ClassInterfaceType.None)]
+ public class MonoAssembly : Assembly {
+#else
+ public partial class Assemby {
+#endif
+
+ }
+}
+
+