Fix the mobile build
[mono.git] / mcs / class / corlib / System.Threading / AbandonedMutexException.cs
index 1d508821ce83968e81ff3a2037ef3cea4b1119e5..bdd05c0c471b0b0eb3ced3a7a76ea43f01a580f7 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 using System.Runtime.Serialization;
+using System.Runtime.InteropServices;
 
 namespace System.Threading
 {
        [Serializable]
+       [ComVisible (false)]
        public class AbandonedMutexException : SystemException
        {
                Mutex mutex;
@@ -47,13 +47,12 @@ namespace System.Threading
                {
                }
 
-               public AbandonedMutexException(string message)
+               public AbandonedMutexException (string message)
                        : base (message)
                {
                }
 
-               public AbandonedMutexException (int location,
-                                               WaitHandle handle)
+               public AbandonedMutexException (int location, WaitHandle handle)
                        : base ("Mutex was abandoned")
                {
                        mutex_index = location;
@@ -61,29 +60,24 @@ namespace System.Threading
                }
                
 
-               protected AbandonedMutexException(SerializationInfo info,
-                                                 StreamingContext context)
+               protected AbandonedMutexException (SerializationInfo info, StreamingContext context)
                        : base (info, context)
                {
                }
 
-               public AbandonedMutexException(string message,
-                                              Exception innerException)
-                       : base (message, innerException)
+               public AbandonedMutexException (string message, Exception inner)
+                       : base (message, inner)
                {
                }
 
-               public AbandonedMutexException (string message, int location,
-                                               WaitHandle handle)
+               public AbandonedMutexException (string message, int location, WaitHandle handle)
                        : base (message)
                {
                        mutex_index = location;
                        mutex = handle as Mutex;
                }
 
-               public AbandonedMutexException (string message,
-                                               Exception inner, int location,
-                                               WaitHandle handle)
+               public AbandonedMutexException (string message, Exception inner, int location, WaitHandle handle)
                        : base (message, inner)
                {
                        mutex_index = location;
@@ -105,5 +99,3 @@ namespace System.Threading
                }
        }
 }
-
-#endif