Author: toshok
Date: 2005-08-31 19:02:09 -0400 (Wed, 31 Aug 2005)
New Revision: 49228
Modified:
trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI/DataSourceSelectArguments.cs
Log:
2005-08-31 Chris Toshok <[EMAIL PROTECTED]>
* DataSourceSelectArguments.cs (Empty): this is apparently,
according to corcompare, a property, not a field. go figure.
(Equals): implement.
(IsEmpty): remove all mention of it.
Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2005-08-31 22:58:49 UTC
(rev 49227)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2005-08-31 23:02:09 UTC
(rev 49228)
@@ -1,3 +1,10 @@
+2005-08-31 Chris Toshok <[EMAIL PROTECTED]>
+
+ * DataSourceSelectArguments.cs (Empty): this is apparently,
+ according to corcompare, a property, not a field. go figure.
+ (Equals): implement.
+ (IsEmpty): remove all mention of it.
+
2005-08-29 Chris Toshok <[EMAIL PROTECTED]>
* StateBag.cs (GetChar): add.
Modified: trunk/mcs/class/System.Web/System.Web.UI/DataSourceSelectArguments.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/DataSourceSelectArguments.cs
2005-08-31 22:58:49 UTC (rev 49227)
+++ trunk/mcs/class/System.Web/System.Web.UI/DataSourceSelectArguments.cs
2005-08-31 23:02:09 UTC (rev 49228)
@@ -38,29 +38,30 @@
string sortExpression = string.Empty;
int startingRowIndex = 0;
int maxRows = 0;
- bool isEmpty;
bool getTotalRowCount = false;
int totalRowCount = -1;
DataSourceCapabilities dsc = DataSourceCapabilities.None;
- public static readonly DataSourceSelectArguments Empty = new
DataSourceSelectArguments ();
+ static DataSourceSelectArguments empty = new
DataSourceSelectArguments();
+ public static DataSourceSelectArguments Empty {
+ get {
+ return empty;
+ }
+ }
public DataSourceSelectArguments ()
{
- this.isEmpty = true;
}
public DataSourceSelectArguments (string sortExpression)
{
this.sortExpression = sortExpression;
- this.isEmpty = false;
}
public DataSourceSelectArguments (int startingRowIndex, int
maxRows)
{
this.startingRowIndex = startingRowIndex;
this.maxRows = maxRows;
- this.isEmpty = false;
}
public DataSourceSelectArguments (string sortExpression, int
startingRowIndex, int maxRows)
@@ -68,7 +69,6 @@
this.sortExpression = sortExpression;
this.startingRowIndex = startingRowIndex;
this.maxRows = maxRows;
- this.isEmpty = false;
}
public void AddSupportedCapabilities (DataSourceCapabilities
srcCapabilities)
@@ -76,12 +76,15 @@
this.dsc = this.dsc | srcCapabilities;
}
- [MonoTODO]
public override bool Equals (object obj)
{
if (!(obj is DataSourceSelectArguments))
return false;
- return false;
+
+ DataSourceSelectArguments args =
(DataSourceSelectArguments)obj;
+ return (this.sortExpression == args.sortExpression &&
+ this.startingRowIndex == args.startingRowIndex
&&
+ this.maxRows == args.maxRows);
}
[MonoTODO]
@@ -95,15 +98,10 @@
view.RaiseUnsupportedCapabilityError (this.dsc);
}
- public bool IsEmpty {
- get { return this.isEmpty; }
- }
-
public int MaximumRows {
get { return this.maxRows; }
set {
this.maxRows = value;
- this.isEmpty = false;
}
}
@@ -116,7 +114,6 @@
get { return this.sortExpression; }
set {
this.sortExpression = value;
- this.isEmpty = false;
}
}
@@ -124,7 +121,6 @@
get { return this.startingRowIndex; }
set {
this.startingRowIndex = value;
- this.isEmpty = false;
}
}
@@ -132,7 +128,6 @@
get { return this.totalRowCount; }
set {
this.totalRowCount = value;
- this.isEmpty = false;
}
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches