Author: gonzalo
Date: 2005-03-11 16:11:27 -0500 (Fri, 11 Mar 2005)
New Revision: 41721
Modified:
trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
trunk/mcs/class/System.Data/System.Data.SqlClient/SqlException.cs
Log:
2005-03-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* SqlException.cs: make it serialization-compatible with MS. Patch by
Aleksandar Dezelin. Closes bug #73596.
Modified: trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog 2005-03-11
21:03:32 UTC (rev 41720)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog 2005-03-11
21:11:27 UTC (rev 41721)
@@ -1,3 +1,8 @@
+2005-03-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * SqlException.cs: make it serialization-compatible with MS. Patch by
+ Aleksandar Dezelin. Closes bug #73596.
+
2005-03-08 Sureshkumar T <[EMAIL PROTECTED]>
* SqlDataReader.cs: Call base constructor with CommandBehavior
Modified: trunk/mcs/class/System.Data/System.Data.SqlClient/SqlException.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient/SqlException.cs
2005-03-11 21:03:32 UTC (rev 41720)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient/SqlException.cs
2005-03-11 21:11:27 UTC (rev 41721)
@@ -46,7 +46,7 @@
{
#region Fields
- SqlErrorCollection errors;
+ private SqlErrorCollection errors;
#endregion // Fields
@@ -63,6 +63,11 @@
{
errors = new SqlErrorCollection (theClass, lineNumber,
message, number, procedure, server, source, state);
}
+
+ private SqlException(SerializationInfo si, StreamingContext sc)
+ {
+ errors = (SqlErrorCollection)si.GetValue("Errors",
typeof(SqlErrorCollection));
+ }
#endregion // Constructors
@@ -127,7 +132,7 @@
if (si == null)
throw new ArgumentNullException ("si");
- si.AddValue ("errors", errors);
+ si.AddValue ("Errors", errors,
typeof(SqlErrorCollection));
base.GetObjectData (si, context);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches