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;
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) {