Fix null sessions in HttpContextWrapper.Session
[mono.git] / mcs / class / corlib / System.Diagnostics / ConditionalAttribute.cs
index 7f1da52d472ccde41e585e15fd4b10719055a926..51b2e810087ba9daf2eeb4a673732982827d7f22 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.Diagnostics 
 {
 
        [Serializable]
        [AttributeUsage(
-#if NET_2_0
                AttributeTargets.Class |
-#endif
                AttributeTargets.Method, AllowMultiple = true)]
+
+       [ComVisible (true)]
        public sealed class ConditionalAttribute : System.Attribute 
        {