2 // System.Web.UI.ParseChildrenAttribute.cs
4 // Duncan Mak (duncan@ximian.com)
11 namespace System.Web.UI {
13 [AttributeUsage (AttributeTargets.Class)]
14 public sealed class ParseChildrenAttribute : Attribute
16 bool childrenAsProperties;
17 string defaultProperty;
20 public ParseChildrenAttribute ()
22 childrenAsProperties = false;
26 public ParseChildrenAttribute (bool childrenAsProperties)
28 this.childrenAsProperties = childrenAsProperties;
29 this.defaultProperty = "";
32 public ParseChildrenAttribute (bool childrenAsProperties,
33 string defaultProperty)
35 this.childrenAsProperties = childrenAsProperties;
36 this.defaultProperty = defaultProperty;
39 public static readonly ParseChildrenAttribute Default;
41 public bool ChildrenAsProperties {
43 get { return childrenAsProperties; }
45 set { childrenAsProperties = value; }
48 public string DefaultProperty {
49 get { return defaultProperty; }
51 set { defaultProperty = value; }
55 public override bool Equals (object obj)
61 public override int GetHashCode ()
67 public override bool IsDefaultAttribute ()