(CreateUnixSocketStream): Instead of hostList [0], which is a char,
[mono.git] / mcs / class / ByteFX.Data / Common / Platform.cs
1 using System;\r
2 \r
3 // ByteFX.Data data access components for .Net\r
4 // Copyright (C) 2002-2004  ByteFX, Inc.\r
5 //\r
6 // This library is free software; you can redistribute it and/or\r
7 // modify it under the terms of the GNU Lesser General Public\r
8 // License as published by the Free Software Foundation; either\r
9 // version 2.1 of the License, or (at your option) any later version.\r
10 // \r
11 // This library is distributed in the hope that it will be useful,\r
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
14 // Lesser General Public License for more details.\r
15 // \r
16 // You should have received a copy of the GNU Lesser General Public\r
17 // License along with this library; if not, write to the Free Software\r
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
19 \r
20 namespace ByteFX.Data.Common\r
21 {\r
22         /// <summary>\r
23         /// Summary description for Platform.\r
24         /// </summary>\r
25         internal class Platform\r
26         {\r
27                 public static bool IsWindows() \r
28                 {\r
29                         OperatingSystem os = Environment.OSVersion;\r
30                         switch (os.Platform)\r
31                         {\r
32                                 case PlatformID.Win32NT:\r
33                                 case PlatformID.Win32S:\r
34                                 case PlatformID.Win32Windows:\r
35                                 case PlatformID.WinCE:\r
36                                         return true;\r
37                         }\r
38                                 return false;\r
39                 }\r
40         }\r
41 }\r