Move NET_4_0 define checks at the right position under the licence text
[mono.git] / mcs / class / corlib / System.Threading / ManualResetEvent.cs
index 30715a7d6542d4d0bb72bca4e8ab9a067b1953de..b914e01910e5f2e7ec3c68faed1e010efd30b632 100644 (file)
 
 using System;
 using System.Runtime.CompilerServices;
-
-#if NET_2_0
 using System.Runtime.InteropServices;
-#endif
 
 namespace System.Threading 
 {
-
-#if NET_2_0
        [ComVisible (true)]
-#endif
-       public sealed class ManualResetEvent :
-#if NET_2_0
-       EventWaitHandle
-#else
-       WaitHandle 
-#endif
+       public sealed class ManualResetEvent : EventWaitHandle
        {
                // Constructor
-#if NET_2_0
                public ManualResetEvent (bool initialState)
                        : base(initialState, EventResetMode.ManualReset)
                {
                }
-#else
-               public ManualResetEvent (bool initialState)
-               {
-                       bool created;
-                       
-                       Handle = NativeEventCalls.CreateEvent_internal (true, initialState, null, out created);
-               }
-#endif
 
                // Methods
 
@@ -72,7 +52,7 @@ namespace System.Threading
  * wants to use the Set method that has moved to EventWaitHandle in
  * the 2.0 profile
  */
-#if ONLY_1_1 || BOOTSTRAP_NET_2_0
+#if BOOTSTRAP_NET_2_0
                public bool Set()
                {
                        CheckDisposed ();