Author: anagappan
Date: 2007-02-09 08:47:41 -0500 (Fri, 09 Feb 2007)
New Revision: 72534
Modified:
trunk/mcs/class/System.Data/System.Data/DataRelationCollection.cs
trunk/mcs/class/System.Data/System.Data/DataSet.cs
Log:
2007-02-09 Nagappan A <[EMAIL PROTECTED]>
* DataSet.cs, DataRelationCollection.cs: Updated code as
per coding standards.
Modified: trunk/mcs/class/System.Data/System.Data/DataRelationCollection.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data/DataRelationCollection.cs
2007-02-09 12:39:34 UTC (rev 72533)
+++ trunk/mcs/class/System.Data/System.Data/DataRelationCollection.cs
2007-02-09 13:47:41 UTC (rev 72534)
@@ -641,24 +641,24 @@
public void Remove (string name)
{
- DataRelation relation = this[name];
+ DataRelation relation = this [name];
if (relation == null)
- throw new ArgumentException("Relation doesnot
belong to this Collection.");
- Remove(relation);
+ throw new ArgumentException ("Relation doesnot
belong to this Collection.");
+ Remove (relation);
}
public void RemoveAt (int index)
{
- DataRelation relation = this[index];
+ DataRelation relation = this [index];
if (relation == null)
- throw new
IndexOutOfRangeException(String.Format("Cannot find relation {0}", index));
- Remove(relation);
+ throw new IndexOutOfRangeException
(String.Format ("Cannot find relation {0}", index));
+ Remove (relation);
}
- protected virtual void RemoveCore(DataRelation relation)
+ protected virtual void RemoveCore (DataRelation relation)
{
// Remove from collection
- List.Remove(relation);
+ List.Remove (relation);
}
#region Events
Modified: trunk/mcs/class/System.Data/System.Data/DataSet.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data/DataSet.cs 2007-02-09 12:39:34 UTC
(rev 72533)
+++ trunk/mcs/class/System.Data/System.Data/DataSet.cs 2007-02-09 13:47:41 UTC
(rev 72534)
@@ -88,7 +88,7 @@
#region Constructors
public DataSet () : this ("NewDataSet")
- {
+ {
}
public DataSet (string name)
@@ -97,9 +97,9 @@
tableCollection = new DataTableCollection (this);
relationCollection = new
DataRelationCollection.DataSetRelationCollection (this);
properties = new PropertyCollection ();
- this.prefix = String.Empty;
+ prefix = String.Empty;
- this.Locale = CultureInfo.CurrentCulture;
+ Locale = CultureInfo.CurrentCulture;
}
protected DataSet (SerializationInfo info, StreamingContext
context) : this ()
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches