// 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)
{
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) {
if (attrib is FilterableAttribute)
return true;
}
- return false;
+ return false;
}
public static bool IsTypeFilterable (Type type)
if (attrib is FilterableAttribute)
return true;
}
- return false;
+ return false;
}
}
}
-#endif