Skip to content

Commit 69d3b19

Browse files
committed
- fixed silverlight compilation
1 parent 24ba249 commit 69d3b19

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/ServiceStack.Text/JsonObject.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,11 @@ public string Child(string key)
110110
{
111111
return base[key];
112112
}
113-
113+
#if !SILVERLIGHT && !MONOTOUCH
114114
static readonly Regex NumberRegEx = new Regex(@"^[0-9]*(?:\.[0-9]*)?$", RegexOptions.Compiled);
115-
115+
#else
116+
static readonly Regex NumberRegEx = new Regex(@"^[0-9]*(?:\.[0-9]*)?$");
117+
#endif
116118
/// <summary>
117119
/// Write JSON Array, Object, bool or number values as raw string
118120
/// </summary>

0 commit comments

Comments
 (0)