MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:rburnett Date:September 12 2008 12:18pm
Subject:Connector/NET commit: r1415 - branches/5.2/MySql.Web/Providers/Source
View as plain text  
Added:
   branches/5.2/MySql.Web/Providers/Source/Runtime.cs
Log:
forgot to include Runtime.cs from patch for bug #38895

Added: branches/5.2/MySql.Web/Providers/Source/Runtime.cs
===================================================================
--- branches/5.2/MySql.Web/Providers/Source/Runtime.cs	                        (rev 0)
+++ branches/5.2/MySql.Web/Providers/Source/Runtime.cs	2008-09-12 12:18:10 UTC (rev 1415)
@@ -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: r1415 - branches/5.2/MySql.Web/Providers/Sourcerburnett12 Sep