فهرست منبع

2005-02-10 Marek Safar <[email protected]>

	* TypeLibVarAttribute.cs,
	* TypeLibTypeAttribute.cs,
	* ComSourceInterfacesAttribute.cs: Fix AttributeUsage flags.

svn path=/trunk/mcs/; revision=40372
Marek Safar 21 سال پیش
والد
کامیت
fd9281b424

+ 5 - 0
mcs/class/corlib/System.Runtime.InteropServices/ChangeLog

@@ -1,3 +1,8 @@
+2005-02-10  Marek Safar  <[email protected]>
+
+	* TypeLibVarAttribute.cs,
+	* TypeLibTypeAttribute.cs,
+	* ComSourceInterfacesAttribute.cs: Fix AttributeUsage flags.
 
 Sat Jan 29 12:48:03 CET 2005 Paolo Molaro <[email protected]>
 

+ 1 - 1
mcs/class/corlib/System.Runtime.InteropServices/ComSourceInterfacesAttribute.cs

@@ -33,7 +33,7 @@ using System.Runtime.Serialization;
 
 namespace System.Runtime.InteropServices
 {
-	[AttributeUsage (AttributeTargets.Class | AttributeTargets.Assembly, 
+	[AttributeUsage (AttributeTargets.Class, 
 			 AllowMultiple = false, Inherited = false)]
 	public sealed class ComSourceInterfacesAttribute : Attribute
 	{

+ 2 - 1
mcs/class/corlib/System.Runtime.InteropServices/TypeLibTypeAttribute.cs

@@ -33,7 +33,8 @@ using System;
 
 namespace System.Runtime.InteropServices {
 
-	[AttributeUsage (AttributeTargets.Method, Inherited=false)]
+	[AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct |
+			 AttributeTargets.Enum | AttributeTargets.Interface, Inherited=false)]
 	public sealed class TypeLibTypeAttribute : Attribute
 	{
 		TypeLibTypeFlags flags;

+ 1 - 1
mcs/class/corlib/System.Runtime.InteropServices/TypeLibVarAttribute.cs

@@ -33,7 +33,7 @@ using System;
 
 namespace System.Runtime.InteropServices {
 
-	[AttributeUsage (AttributeTargets.Method, Inherited=false)]
+	[AttributeUsage (AttributeTargets.Field, Inherited=false)]
 	public sealed class TypeLibVarAttribute : Attribute
 	{
 		TypeLibVarFlags flags;