mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* System.Web.UI/CompiledTemplateBuilder.cs: new file. Used in the code generated by xsp. * System.Web.UI/Control.cs: (BindingContainer): implemented. (EnsureChildControls): avoid stack overflow. * System.Web.UI/DataBinder.cs: implemented Eval and PropertyValue. * System.Web.UI.WebControls/Repeater.cs: (Controls): (OnDataBinding): fixed stack overflow. Still need more work in Repeater.cs to make it render. svn path=/trunk/mcs/; revision=5345
30 lines
624 B
C#
30 lines
624 B
C#
//
|
|
// System.Web.UI.CompiledTemplateBuilder
|
|
//
|
|
// Authors:
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc (http://www.ximian.com)
|
|
//
|
|
// This is used in the generated C# code from MS and xsp does the same.
|
|
// It just seems to be a container implementing an ITemplate interface.
|
|
|
|
namespace System.Web.UI {
|
|
|
|
public class CompiledTemplateBuilder : ITemplate
|
|
{
|
|
private BuildTemplateMethod templateMethod;
|
|
|
|
public CompiledTemplateBuilder (BuildTemplateMethod templateMethod)
|
|
{
|
|
this.templateMethod = templateMethod;
|
|
}
|
|
|
|
public void InstantiateIn (Control ctrl)
|
|
{
|
|
templateMethod (ctrl);
|
|
}
|
|
}
|
|
}
|
|
|