[mono-config] use right type for result of strlen
[mono.git] / mcs / class / System.Web / System.Web.UI / FilterableAttribute.cs
index 511ff4622b33f3ced999ecfed06b19902c568655..afbfb3bb68a937a6efa599a0fd6609026df5866d 100644 (file)
@@ -4,7 +4,7 @@
 // Authors:
 //     Sanjay Gupta (gsanjay@novell.com)
 //
-// (C) 2004 Novell, Inc. (http://www.novell.com)
+// (C) 2004-2010 Novell, Inc. (http://www.novell.com)
 //
 
 //
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if NET_2_0
 using System;
 using System.ComponentModel;
 
 namespace System.Web.UI {
        [AttributeUsage (AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
-       public sealed class FilterableAttribute : Attribute, IDisposable 
+       public sealed class FilterableAttribute : Attribute
        {
-               private bool filterable;
-               private bool dispose;
+               bool filterable;
 
                public FilterableAttribute (bool filterable) 
                {
@@ -53,20 +51,6 @@ namespace System.Web.UI {
                        get { return filterable; } 
                }
 
-               public void Dispose ()
-               {
-                       Dispose (true);
-                       GC.SuppressFinalize (this);
-               }
-               
-               private void Dispose (bool disposing)
-               {
-                       if (!this.dispose) {
-                               //Do nothing
-                               this.dispose = true;
-                       }
-               }
-
                public override bool Equals (object obj)
                {
                        if (obj != null && obj is FilterableAttribute) {
@@ -99,7 +83,7 @@ namespace System.Web.UI {
                                        if (attrib is FilterableAttribute)
                                                return true;
                        }
-                       return false;                   
+                       return false;
                }
 
                public static bool IsTypeFilterable (Type type)
@@ -110,8 +94,7 @@ namespace System.Web.UI {
                                        if (attrib is FilterableAttribute)
                                                return true;
                        }
-                       return false;                   
+                       return false;
                }
        }
 }
-#endif