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/Source | rburnett | 12 Sep |