Files
mono/mcs/class/System.Web/System.Web.UI/PersistChildrenAttribute.cs
T
Gonzalo Paniagua Javier 5d84bef5d3 2003-11-21 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added new files.

	* System.Web/HttpApplication.cs:
	* System.Web/HttpContext.cs:
	* System.Web/HttpRuntime.cs: add timeout handling.
	* System.Web/TimeoutManager.cs: new class that takes care of aborting
	threads on timeout.

	* System.Web.Configuration/CompilationConfiguration.cs: don't throw
	an HttpException.
	* System.Web.Configuration/HttpRuntimeConfig.cs:
	* System.Web.Configuration/HttpRuntimeConfigurationHandler.cs: handle
	system.web/httpRuntime configuration section.

	* System.Web.UI/PersistChildrenAttribute.cs:
	* System.Web.UI/PersistenceModeAttribute.cs: implemented.

	* System.Web.UI/TODO: Removed file.
	* System.Web.UI/OutputCacheLocation.cs:
	* System.Web.UI/TemplateControlParser.cs:
	* System.Web.UI.HtmlControls/HtmlInputFile.cs:
	* System.Web.UI.WebControls/Xml.cs: class status based fixes.

svn path=/trunk/mcs/; revision=20291
2003-11-21 00:26:20 +00:00

51 lines
1.0 KiB
C#
Executable File

//
// System.Web.UI.PersistChildrenAttribute.cs
//
// Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
using System;
namespace System.Web.UI {
[AttributeUsage (AttributeTargets.Class)]
public sealed class PersistChildrenAttribute : Attribute
{
bool persist;
public PersistChildrenAttribute (bool persist)
{
this.persist = persist;
}
public static readonly PersistChildrenAttribute Default = new PersistChildrenAttribute (true);
public static readonly PersistChildrenAttribute Yes = new PersistChildrenAttribute (true);
public static readonly PersistChildrenAttribute No = new PersistChildrenAttribute (false);
public bool Persist {
get { return persist; }
}
public override bool Equals (object obj)
{
if (!(obj is PersistChildrenAttribute))
return false;
return (((PersistChildrenAttribute) obj).persist == persist);
}
public override int GetHashCode ()
{
return persist ? 1 : 0;
}
public override bool IsDefaultAttribute ()
{
return (persist == true);
}
}
}