[assembly: AssemblyTrademark("")]
// FIXME Add once compliance is reached
-//[assembly: CLSCompliant(true)]
+[assembly: CLSCompliant(true)]
[assembly: AssemblyDefaultAlias("System.Data.dll")]
[assembly: AssemblyInformationalVersion("0.0.0.1")]
[assembly: NeutralResourcesLanguage("en-US")]
[assembly: AllowPartiallyTrustedCallers]
//[assembly: AssemblyDelaySign(false)]
-//[assembly: AssemblyKeyFile("")]
\ No newline at end of file
+//[assembly: AssemblyKeyFile("")]
+2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * Assembly/AssemblyInfo.cs: missing bits from Gert's patch for CLS
+ compliance.
+
2003-07-18 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* AssemblyInfo.cs: Added
* ChangeLog: Added
- * Locale.cs: Added
\ No newline at end of file
+ * Locale.cs: Added
+2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * OleDbPermissionAttribute.cs: missing bits from Gert's patch for
+ CLS compliance.
+
2004-01-10 Atsushi Enomoto <atsushi@ximian.com>
* OleDbPermission.cs : NET_1_2 fix not to call obsolete .ctor.
#region Constructors
[MonoTODO]
- OleDbPermissionAttribute (SecurityAction action)
+ public OleDbPermissionAttribute (SecurityAction action)
: base (action)
{
}
+2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * Constraint.cs:
+ * DataColumnCollection.cs:
+ * DataRelationCollection.cs:
+ * DataRowCollection.cs:
+ * DataTableCollection.cs:
+ * InternalDataCollectionBase.cs:
+ * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
+ Fixes bug #56557.
+
2004-04-05 Jackson Harper <jackson@ximian.com>
* DataTable.cs: Add rows to the row list if there is no filter.
* DataColumn.cs : Setting Caption to null sets it to the empty string
(ms.net behaviour, testcase is in DataColumnTest).
- * DataRow.cs : Evaluate DataColumn.Expression when such a column's value is
- requested.
+ * DataRow.cs : Evaluate DataColumn.Expression when such a column's
+ value is requested.
2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
_properties = new PropertyCollection();
}
- protected internal virtual DataSet _DataSet {
+ protected internal virtual DataSet DataSet {
get { return dataSet; }
}
private int IndexOf (string name, bool error)
{
int count = 0, match = -1;
- for (int i = 0; i < list.Count; i++)
+ for (int i = 0; i < List.Count; i++)
{
- String name2 = ((DataColumn) list[i]).ColumnName;
+ String name2 = ((DataColumn) List[i]).ColumnName;
if (String.Compare (name, name2, true) == 0)
{
if (String.Compare (name, name2, false) == 0)
{
get {
int index = IndexOf (name, true);
- return index < 0 ? null : (DataRelation) list[index];
+ return index < 0 ? null : (DataRelation) List[index];
}
}
{
get {
int index = IndexOf (name, true);
- return index < 0 ? null : (DataRelation) list[index];
+ return index < 0 ? null : (DataRelation) List[index];
}
}
private int IndexOf (string name, bool error)
{
int count = 0, match = -1;
- for (int i = 0; i < list.Count; i++)
+ for (int i = 0; i < List.Count; i++)
{
- String name2 = ((DataRelation) list[i]).RelationName;
+ String name2 = ((DataRelation) List[i]).RelationName;
if (String.Compare (name, name2, true) == 0)
{
if (String.Compare (name, name2, false) == 0)
if (index >= Count)
throw new IndexOutOfRangeException ("There is no row at position " + index + ".");
- return (DataRow) list[index];
+ return (DataRow) List[index];
}
}
/// </summary>
protected override ArrayList List
{
- get { return list; }
+ get { return base.List; }
}
/// <summary>
ValidateDataRowInternal(row);
row.HasParentCollection = true;
- list.Add (row);
+ List.Add (row);
// Set the row id.
- row.RowID = list.Count - 1;
+ row.RowID = List.Count - 1;
row.AttachRow ();
row.Table.ChangedDataRow (row, DataRowAction.Add);
}
}
}
}
- list.Clear ();
+ List.Clear ();
}
/// <summary>
// we have to check that the new row doesn't colide with existing row
ValidateDataRowInternal(row);
- if (pos >= list.Count)
- list.Add (row);
+ if (pos >= List.Count)
+ List.Add (row);
else
- list.Insert (pos, row);
+ List.Insert (pos, row);
row.HasParentCollection = true;
row.AttachRow ();
if (row == null) {
throw new IndexOutOfRangeException ("The given datarow is not in the current DataRowCollection.");
}
- int index = list.IndexOf(row);
+ int index = List.IndexOf(row);
if (index < 0) {
throw new IndexOutOfRangeException ("The given datarow is not in the current DataRowCollection.");
}
- list.RemoveAt(index);
+ List.RemoveAt(index);
}
/// <summary>
{
if (row == null)
throw new IndexOutOfRangeException ("The given datarow is not in the current DataRowCollection.");
- int index = list.IndexOf(row);
+ int index = List.IndexOf(row);
if (index < 0)
throw new IndexOutOfRangeException ("The given datarow is not in the current DataRowCollection.");
row.Delete();
/// </summary>
public void RemoveAt (int index)
{
- if (index < 0 || index >= list.Count)
+ if (index < 0 || index >= List.Count)
throw new IndexOutOfRangeException ("There is no row at position " + index + ".");
- DataRow row = (DataRow)list [index];
+ DataRow row = (DataRow)List [index];
row.Delete();
row.AcceptChanges();
}
#region Properties
public DataTable this[int index] {
- get { return (DataTable)(list[index]); }
+ get { return (DataTable)(List[index]); }
}
public DataTable this[string name] {
get {
int index = IndexOf (name, true);
- return index < 0 ? null : (DataTable) list[index];
+ return index < 0 ? null : (DataTable) List[index];
}
}
#endif
protected override ArrayList List {
- get { return list; }
+ get { return base.List; }
}
#endregion
throw new ArgumentNullException("table");
// check if the list already contains this tabe.
- if(list.Contains(table))
+ if(List.Contains(table))
throw new ArgumentException("DataTable already belongs to this DataSet.");
// if the table name is null or empty string.
throw new DuplicateNameException("A DataTable named '" + table.TableName + "' already belongs to this DataSet.");
}
- list.Add (table);
+ List.Add (table);
table.dataSet = dataSet;
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Add, table));
}
public void Clear ()
{
- list.Clear ();
+ List.Clear ();
}
public bool Contains (string name)
public virtual int IndexOf (DataTable table)
{
- return list.IndexOf (table);
+ return List.IndexOf (table);
}
public virtual int IndexOf (string name)
public void Remove (DataTable table)
{
CanRemove(table, true);
- list.Remove(table);
+ List.Remove(table);
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Remove, table));
}
{
DataTable t = this[index];
CanRemove(t, true);
- list.RemoveAt (index);
+ List.RemoveAt (index);
OnCollectionChanged (new CollectionChangeEventArgs (CollectionChangeAction.Remove, t));
}
private int IndexOf (string name, bool error)
{
int count = 0, match = -1;
- for (int i = 0; i < list.Count; i++)
+ for (int i = 0; i < List.Count; i++)
{
- String name2 = ((DataTable) list[i]).TableName;
+ String name2 = ((DataTable) List[i]).TableName;
if (String.Compare (name, name2, true) == 0)
{
if (String.Compare (name, name2, false) == 0)
{
#region Fields
- // FIXME: keep list protected until mcs/mono is fixed
- protected ArrayList list = null;
+ private ArrayList list = null;
private bool readOnly = false;
private bool synchronized = false;
/// <summary>
/// Summary description for Node.
/// </summary>
- public class Node
+ internal class Node
{
protected int _iBalance; // currently, -2 means 'deleted'
internal Node _nNext; // node of next index (nNext==null || nNext.iId=iId+1)