mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* 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
53 lines
899 B
C#
Executable File
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 ();
|
|
}
|
|
}
|
|
}
|