| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // 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 ();
- }
- }
- }
|