* SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
[mono.git] / mcs / class / System.Web / System.Web.UI / PersistChildrenAttribute.cs
1 //
2 // System.Web.UI.PersistChildrenAttribute.cs
3 //
4 // Duncan Mak  (duncan@ximian.com)
5 //
6 // (C) Ximian, Inc.
7 //
8
9 using System;
10
11 namespace System.Web.UI {
12
13         [AttributeUsage (AttributeTargets.Class)]
14         public sealed class PersistChildrenAttribute : Attribute
15         {
16                 bool persist;
17                 
18                 public PersistChildrenAttribute (bool persist)
19                 {
20                         this.persist = persist;
21                 }
22
23                 public static readonly PersistChildrenAttribute Default;
24                 public static readonly PersistChildrenAttribute Yes;
25                 public static readonly PersistChildrenAttribute No;
26
27                 public bool Persist {
28                         get { return persist; }
29                 }
30
31                 [MonoTODO]
32                 public override bool Equals (object obj)
33                 {
34                         return false;
35                 }
36
37                 [MonoTODO]
38                 public override int GetHashCode ()
39                 {
40                         return 42;
41                 }
42
43                 [MonoTODO]
44                 public override bool IsDefaultAttribute ()
45                 {
46                         return false;
47                 }
48         }
49 }
50