Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / DispatchWrapper.cs
index a4446961add8660212a9f60995161a6040c9ae67..dfc5a2a29f2d9440596efcacf5034d3ff8d357b8 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if !FULL_AOT_RUNTIME
 using System;
 
 namespace System.Runtime.InteropServices
 {
+       [Serializable]
+       [ComVisible (true)]
        public sealed class DispatchWrapper
        {
                object wrappedObject;
@@ -47,3 +50,4 @@ namespace System.Runtime.InteropServices
                }
        }
 }
+#endif