Files
mono/mcs/class/System.Web/System.Web.UI/ParseChildrenAttribute.cs
T
Duncan Mak aba2324a17 2002-05-10 Duncan Mak <[email protected]>
* ConstructorNeedsTagAttribute.cs:
	* ControlBuilderAttribute.cs:
	* ImageClickEventArgs.cs:
	* ParseChildrenAttribute.cs:
	* PartialCachingAttribute.cs:
	* PersistChildrenAttribute.cs:
	* PersistenceModeAttribute.cs:
	* TemplateContainerAttribute.cs: Added to CVS.

	* PersistanceMode.cs: Removed, fixed typo.
	* PersistenceMode.cs: Replacing above.

	* StateBag.cs (this): Fixed indexer, it takes a string as the
	index, not an object.

svn path=/trunk/mcs/; revision=4498
2002-05-10 18:51:24 +00:00

73 lines
1.3 KiB
C#
Executable File

//
// System.Web.UI.ParseChildrenAttribute.cs
//
// Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
using System;
namespace System.Web.UI {
[AttributeUsage (AttributeTargets.Class)]
public sealed class ParseChildrenAttribute : Attribute
{
bool childrenAsProperties;
string defaultProperty;
// LAMESPEC
public ParseChildrenAttribute ()
{
childrenAsProperties = false;
defaultProperty = "";
}
public ParseChildrenAttribute (bool childrenAsProperties)
{
this.childrenAsProperties = childrenAsProperties;
this.defaultProperty = "";
}
public ParseChildrenAttribute (bool childrenAsProperties,
string defaultProperty)
{
this.childrenAsProperties = childrenAsProperties;
this.defaultProperty = defaultProperty;
}
public static readonly ParseChildrenAttribute Default;
public bool ChildrenAsProperties {
get { return childrenAsProperties; }
set { childrenAsProperties = value; }
}
public string DefaultProperty {
get { return defaultProperty; }
set { defaultProperty = value; }
}
[MonoTODO]
public override bool Equals (object obj)
{
return false;
}
[MonoTODO]
public override int GetHashCode ()
{
return 42;
}
[MonoTODO]
public override bool IsDefaultAttribute ()
{
return false;
}
}
}