Files
mono/mcs/class/System.Web/System.Web.UI/DataBinding.cs
T
Duncan Mak b3976280ad 2002-05-17 Duncan Mak <[email protected]>
* System.Web.build: Added new arguments: "/noconfig",
	"/r:System.Drawing.dll" and "/r:System.Xml.dll".

	* AttributeCollection.cs:
	* ControlCollection.cs:
	* CssStyleCollection.cs:
	* DataBindingCollection.cs:
	* EmptyControlCollection.cs: Added missing Collection classes.

	* BaseParser.cs:
	* TemplateParser.cs:  Implemented. BaseParser is weird because
	there is no documentation on what it does.

	* ControlBuilder.cs:

	* DataBinder.cs:
	* DataBinding.cs: Added.

	* DataBoundLiteralControl.cs:
	* Triplet.cs: Added.

	* RenderMethod.cs: Added this delegate for Control.cs

svn path=/trunk/mcs/; revision=4726
2002-05-17 20:54:14 +00:00

53 lines
899 B
C#
Executable File

//
// System.Web.UI.DataBinding.cs
//
// Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
using System;
namespace System.Web.UI {
public sealed class DataBinding
{
string propertyName;
string propertyType;
string expression;
public DataBinding (string propertyName, string propertyType,
string expression)
{
this.propertyName = propertyName;
this.propertyType = propertyType;
this.expression = expression;
}
public string Expression {
get { return expression; }
}
public string PropertyName {
get { return propertyName; }
}
public string PropertyType {
get { return propertyType; }
}
public override bool Equals (object obj)
{
if (((DataBinding) obj).PropertyName == this.PropertyName)
return true;
else
return false;
}
public override int GetHashCode ()
{
return propertyName.GetHashCode ();
}
}
}