[mono-config] use right type for result of strlen
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / ObjectDataSourceStatusEventArgs.cs
index fd6acbf02dc1a059118ac8d7e6f3405e9e64f4b4..ea9c728e974dc3bb02eec513665e7f217d728ce0 100644 (file)
@@ -28,7 +28,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 
 using System.Collections;
 
@@ -36,18 +35,15 @@ namespace System.Web.UI.WebControls
 {
        public class ObjectDataSourceStatusEventArgs : EventArgs
        {
-               private object returnVal; 
-               private IDictionary outPutParam;
-               private Exception exception;
-               private bool exceptionHandled;
-               
+               readonly object returnVal;
+               readonly IDictionary outPutParam;
+               readonly Exception exception;
+               bool exceptionHandled;
+               int affectedRows;
+
                public ObjectDataSourceStatusEventArgs (object returnVal, IDictionary outPutParam)
-               {
-                       this.returnVal = returnVal;
-                       this.outPutParam = outPutParam;
-                       this.exception = null;
-                       this.exceptionHandled = false;
-               }
+                       :
+                       this (returnVal, outPutParam, null) { }
                
                public ObjectDataSourceStatusEventArgs (object returnVal, IDictionary outPutParam, Exception e)
                {
@@ -55,6 +51,12 @@ namespace System.Web.UI.WebControls
                        this.outPutParam = outPutParam;
                        this.exception = e;
                        this.exceptionHandled = false;
+                       this.affectedRows = -1;
+               }
+
+               public int AffectedRows {
+                       get { return affectedRows; }
+                       set { affectedRows = value; }
                }
                
                public Exception Exception {
@@ -75,4 +77,3 @@ namespace System.Web.UI.WebControls
                }
        }
 }
-#endif