Merge branch 'master' of github.com:mono/mono
[mono.git] / mcs / class / corlib / System.Threading / AutoResetEvent.cs
index 59d2c4c2798e410bbf9a27e38c337c05277ac838..589693de8ff0cec9407c601b594093096de65e33 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 AutoResetEvent :
-#if NET_2_0
-       EventWaitHandle
-#else
-       WaitHandle 
-#endif
+       public sealed class AutoResetEvent : EventWaitHandle
        {
                // Constructor
-#if NET_2_0
                public AutoResetEvent (bool initialState)
                        : base(initialState, EventResetMode.AutoReset)
                {
                }
-#else
-               public AutoResetEvent(bool initialState) {
-                       bool created;
-                       
-                       Handle = NativeEventCalls.CreateEvent_internal(false,initialState,null, out created);
-               }
-#endif
 
                // Methods
 
@@ -71,7 +54,7 @@ namespace System.Threading
  * the Set and Reset methods that have 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 ();