[mono-config] use right type for result of strlen
[mono.git] / mcs / class / System.Web / System.Web.UI / FilterableAttribute.cs
index 61834b75c327183972ab08212c8a3404dbccc6ca..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)
 //
 
 //
@@ -27,7 +27,6 @@
 // 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;
 
@@ -35,7 +34,7 @@ namespace System.Web.UI {
        [AttributeUsage (AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
        public sealed class FilterableAttribute : Attribute
        {
-               private bool filterable;
+               bool filterable;
 
                public FilterableAttribute (bool filterable) 
                {
@@ -84,7 +83,7 @@ namespace System.Web.UI {
                                        if (attrib is FilterableAttribute)
                                                return true;
                        }
-                       return false;                   
+                       return false;
                }
 
                public static bool IsTypeFilterable (Type type)
@@ -95,8 +94,7 @@ namespace System.Web.UI {
                                        if (attrib is FilterableAttribute)
                                                return true;
                        }
-                       return false;                   
+                       return false;
                }
        }
 }
-#endif