* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.Data / System.Data / TypeDataSetGeneratorException.cs
index b93b168f00268cc04771e344331bfb7951964c85..c802f6081cd8e687fe8b86eee7c65586821a1e48 100644 (file)
@@ -63,32 +63,35 @@ namespace System.Data {
                                errorList.Add (info.GetString("KEY_ARRAYVALUES" + i));
                }
 
+#if NET_2_0
+               public TypedDataSetGeneratorException (String error) : base (error)
+               {
+               }
+               
+               public TypedDataSetGeneratorException (String error, Exception inner) 
+                       : base (error, inner)
+               {
+               }
+#endif
                #endregion //Constructors       
 
-               public ArrayList ErrorList
-                {
-                        get 
-                        {
-                                return errorList;
-                        }
-                                           
+               public ArrayList ErrorList {
+                        get { return errorList; }
                }
 
                #region Methods
                                                                                                     
                 public override void GetObjectData (SerializationInfo si, StreamingContext context)
                 {
-            base.GetObjectData (si, context);
+                       base.GetObjectData (si, context);
                                                 
                        int count = (errorList != null) ? ErrorList.Count : 0;
-            si.AddValue ("KEY_ARRAYCOUNT", count);
+                       si.AddValue ("KEY_ARRAYCOUNT", count);
 
                        for (int i=0; i < count; i++)
                                si.AddValue("KEY_ARRAYVALUES" + i, ErrorList [i]);
-                                                                                                    
                 }
                                                                                                     
                 #endregion // Methods
-
        }
 }