mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* HtmlImage.cs: * HtmlInputControl.cs: * HtmlSelect.cs: added control builder attribute. * HtmlSelectBuilder.cs: builder for HtmlSelect. * HtmlControlBuilder.cs: common builder for all HtmlControls. svn path=/trunk/mcs/; revision=14143
33 lines
615 B
C#
33 lines
615 B
C#
//
|
|
// System.Web.UI.HtmlControls.HtmlSelectBuilder
|
|
//
|
|
// Authors:
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2003 Ximian, Inc (http://www.ximian.com)
|
|
//
|
|
|
|
using System.Collections;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace System.Web.UI.HtmlControls
|
|
{
|
|
class HtmlSelectBuilder : ControlBuilder
|
|
{
|
|
public override bool AllowWhitespaceLiterals ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public override Type GetChildControlType (string tagName, IDictionary attribs)
|
|
{
|
|
if (System.String.Compare (tagName, "option", true) != 0)
|
|
return null;
|
|
|
|
return typeof (ListItem);
|
|
}
|
|
}
|
|
}
|
|
|