From: Date: September 12 2008 11:56pm Subject: Connector/NET commit: r1419 - branches/5.2/MySql.Data/Provider/Source List-Archive: http://lists.mysql.com/commits/54011 X-Bug: 38895 Message-Id: <200809122156.m8CLubNN009915@bk-internal.mysql.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added: branches/5.2/MySql.Data/Provider/Source/Runtime.cs Log: forgot to include Runtime.cs from patch for bug #38895 Added: branches/5.2/MySql.Data/Provider/Source/Runtime.cs =================================================================== --- branches/5.2/MySql.Data/Provider/Source/Runtime.cs (rev 0) +++ branches/5.2/MySql.Data/Provider/Source/Runtime.cs 2008-09-12 21:56:37 UTC (rev 1419) @@ -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; + } + } +}