[Mono-dev] Fixes for Grasshopper compilation
Eyal Alaluf
eyala at mainsoft.com
Thu Sep 8 09:27:57 EDT 2005
Hi, all.
Attached are fixes to WebCategoryAttribute.cs & WebSysDescriptionAttribute.cs that mark
them as "[AttributeUsage(AttributeTargets.All)]". The MS C# compiler refused to compile
System.Web otherwise (from within Grasshopper).
The fix seems innocent enough, though. Any comments?
Eyal.
-------------- next part --------------
Index: WebCategoryAttribute.cs
===================================================================
--- WebCategoryAttribute.cs (revision 49680)
+++ WebCategoryAttribute.cs (working copy)
@@ -29,6 +29,7 @@
using System.ComponentModel;
namespace System.Web {
+ [AttributeUsage(AttributeTargets.All)]
internal class WebCategoryAttribute : CategoryAttribute {
public WebCategoryAttribute (string category) : base (category)
Index: WebSysDescriptionAttribute.cs
===================================================================
--- WebSysDescriptionAttribute.cs (revision 49680)
+++ WebSysDescriptionAttribute.cs (working copy)
@@ -29,6 +29,7 @@
using System.ComponentModel;
namespace System.Web {
+ [AttributeUsage(AttributeTargets.All)]
internal class WebSysDescriptionAttribute : DescriptionAttribute {
public WebSysDescriptionAttribute (string description) : base (description)
More information about the Mono-devel-list
mailing list