2007-10-27 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / class / corlib / System / AttributeUsageAttribute.cs
index 7a43a48de18b0a9714f5a27089395cdfbffb0748..3e30e6a5fcba9744fae808ef412db26060233323 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+using System.Runtime.InteropServices;
 
 namespace System
 {
-       [Serializable]
-       [AttributeUsage(AttributeTargets.All)]
+       [Serializable, AttributeUsage (AttributeTargets.Class)]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class AttributeUsageAttribute : Attribute
        {
                AttributeTargets valid_on;