Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 24205fb

Browse files
committed
Add IsWin and global StrictMode
1 parent 02bde73 commit 24205fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ServiceStack.Text/Env.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ static Env()
4242
var platform = (int)Environment.OSVersion.Platform;
4343
IsUnix = (platform == 4) || (platform == 6) || (platform == 128);
4444
#endif
45+
IsWin = !IsUnix;
4546

4647
ServerUserAgent = "ServiceStack/" +
4748
ServiceStackVersion + " "
@@ -59,6 +60,8 @@ static Env()
5960

6061
public static bool IsUnix { get; set; }
6162

63+
public static bool IsWin { get; set; }
64+
6265
public static bool IsMono { get; set; }
6366

6467
public static bool IsMonoTouch { get; set; }
@@ -75,6 +78,8 @@ static Env()
7578

7679
public static bool SupportsEmit { get; set; }
7780

81+
public static bool StrictMode { get; set; }
82+
7883
public static string ServerUserAgent { get; set; }
7984

8085
private static readonly DateTime __releaseDate;

0 commit comments

Comments
 (0)