Merge pull request #2034 from alexrp/ctx-cleanup
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls.WebParts / ConnectionPoint.cs
index bc3ffce480f46637c4494381f3dded0840986ca8..7529fae22e48b5add5dbe65bac841efd2490492f 100644 (file)
@@ -1,4 +1,4 @@
-//
+//
 // System.Web.UI.WebControls.WebParts.ConnectionPoint.cs
 //
 // Author: Sanjay Gupta (gsanjay@novell.com)
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 //
 
-#if NET_2_0
 using System.Web;
 using System.Reflection;
 
 namespace System.Web.UI.WebControls.WebParts {
         public abstract class ConnectionPoint 
        {
-               private bool allowMultiConn;
-               private string name = string.Empty;
-               private string id = "default";
-               private Type interfaceType;
-               private Type controlType;
-               private Control control;
-               private MethodInfo callBackMethod;
+               bool allowMultiConn;
+               string name = string.Empty;
+               string id = "default";
+               Type interfaceType;
+               Type controlType;
+               MethodInfo callBackMethod;
                
                public const string DefaultID = "default";
 
@@ -54,7 +52,11 @@ namespace System.Web.UI.WebControls.WebParts {
                        this.callBackMethod = callBack;
                }
                
-               [MonoTODO]
+               internal MethodInfo CallbackMethod {
+                       get{ return callBackMethod;  }
+               }
+               
+               [MonoTODO ("Not implemented")]
                public virtual bool GetEnabled (Control control)
                {
                        throw new NotImplementedException ();
@@ -81,4 +83,3 @@ namespace System.Web.UI.WebControls.WebParts {
                }       
         }
 }
-#endif
\ No newline at end of file