| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- //
- // 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;
- }
- }
- }
|