List:Commits« Previous MessageNext Message »
From:rburnett Date:September 12 2008 12:22pm
Subject:Connector/NET commit: r1416 - trunk/MySql.Web/Providers/Source
View as plain text  
Added:
   trunk/MySql.Web/Providers/Source/Runtime.cs
Log:
merged

Copied: trunk/MySql.Web/Providers/Source/Runtime.cs (from rev 1415, branches/5.2/MySql.Web/Providers/Source/Runtime.cs)
===================================================================
--- trunk/MySql.Web/Providers/Source/Runtime.cs	                        (rev 0)
+++ trunk/MySql.Web/Providers/Source/Runtime.cs	2008-09-12 12:22:06 UTC (rev 1416)
@@ -0,0 +1,26 @@
+using System;
+
+namespace MySql.Web.Security
+{
+    internal static class Runtime
+    {
+        private static bool inited;
+        private static bool isMono;
+
+        public static bool IsMono
+        {
+            get
+            {
+                if (!inited)
+                    Init();
+                return isMono;
+            }
+        }
+
+        private static void Init()
+        {
+            Type t = Type.GetType("Mono.Runtime");
+            isMono = t != null;
+        }
+    }
+}

Thread
Connector/NET commit: r1416 - trunk/MySql.Web/Providers/Sourcerburnett12 Sep