2010-03-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
[mono.git] / mcs / class / corlib / System / WeakReference.cs
index b39e52c9e118b2fd9893cebb3b73b7606b20db4d..edc97c9401cee7b299e0c4b8dc88c529f1d4a401 100644 (file)
@@ -34,6 +34,7 @@ using System.Runtime.InteropServices;
 namespace System
 {
        [Serializable]
+       [ComVisible (true)]
        public class WeakReference : ISerializable
        {
                //Fields
@@ -53,6 +54,11 @@ namespace System
                }
 
                //Constructors
+#if NET_2_1
+               protected WeakReference ()
+               {
+               }
+#endif
                public WeakReference (object target)
                        : this (target, false)
                {