mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-21 07:39:30 -10:00
* 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
73 lines
1.3 KiB
C#
Executable File
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;
|
|
}
|
|
}
|
|
}
|