projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Commit
[mono.git]
/
mcs
/
class
/
System
/
System.ComponentModel
/
ToolboxItemFilterAttribute.cs
diff --git
a/mcs/class/System/System.ComponentModel/ToolboxItemFilterAttribute.cs
b/mcs/class/System/System.ComponentModel/ToolboxItemFilterAttribute.cs
index d3e42dd6466f574c0a6747b5ef629091fba68ca8..d533197e0783d031172d4bec3ae9a86fe7fcb3d0 100644
(file)
--- a/
mcs/class/System/System.ComponentModel/ToolboxItemFilterAttribute.cs
+++ b/
mcs/class/System/System.ComponentModel/ToolboxItemFilterAttribute.cs
@@
-75,7
+75,7
@@
namespace System.ComponentModel
public override int GetHashCode()
{
public override int GetHashCode()
{
- return
(Filter + ItemFilterType.ToString()
).GetHashCode ();
+ return
ToString (
).GetHashCode ();
}
public override bool Match (object obj)
}
public override bool Match (object obj)
@@
-84,5
+84,12
@@
namespace System.ComponentModel
return false;
return ((ToolboxItemFilterAttribute) obj).FilterString == Filter;
}
return false;
return ((ToolboxItemFilterAttribute) obj).FilterString == Filter;
}
+
+#if NET_2_0
+ public override string ToString ()
+ {
+ return String.Format ("{0},{1}", Filter, ItemFilterType);
+ }
+#endif
}
}
}
}