Skip to content
This repository
Browse code

Update README.md

  • Loading branch information...
commit c30d1a1e5084d2a990de0b3c01e5052323358db7 1 parent 0a0c952
Prabir Shrestha prabirshrestha authored

Showing 1 changed file with 3 additions and 46 deletions. Show diff stats Hide diff stats

  1. +3 46 README.md
49 README.md
Source Rendered
@@ -11,49 +11,6 @@ SimpleJson is not distributed as a compiled binary .dll file but rather as a sin
11 11 Install-Package SimpleJson
12 12 ```
13 13
14   -**Define appropriate conditional compilation symbol depending on your framework**
15   -
16   -_**.NET 2.0+ (including .NET 3.0/3.5/4.0/4.5)**_
17   -
18   -```csharp
19   -#define SIMPLE_JSON_REFLECTIONEMIT
20   -```
21   -
22   -_**Windows Runtime (Windows Metro Style Apps)**_
23   -
24   -```csharp
25   -#define NETFX_CORE
26   -```
27   -
28   -`NETFX_CORE` is automatically defined for new WinRT projects by Visual Studio.
29   -
30   -_**Silverlight 4+, .NET 4.0+ and WinRT (.net frameworks which supports dynamic)**_
31   -
32   -```csharp
33   -#define SIMPLE_JSON_DYNAMIC
34   -```
35   -
36   -_**DataContract/DataMember support**_
37   -
38   -```csharp
39   -#define SIMPLE_JSON_DATACONTRACT
40   -```
41   -
42   -You are also required to reference `System.Runtime.Serialization` library.
43   -
44   -_**Hiding SimpleJson class**_
45   -
46   -```csharp
47   -#define SIMPLE_JSON_INTERNAL
48   -```
49   -
50   -This will make the `SimpleJson` class to internal class instead of public.
51   -
52   -_**Hiding JsonArray and JsonObject class**_
53   -
54   -```csharp
55   -#define SIMPLE_JSON_OBJARRAYINTERNAL
56   -```
57   -
58   -This will make the `JsonArray` and `JsonObject` classes to internal class instead of public. You can cast `JsonObject`
59   -to `IDictionary<string,object>` or `IDictionary<string,dynamic>` and `JsonArray` to `IList<object>` or `IList<dynamic>`.
  14 +## Preparing Simple Json for your .NET Framework/Platform
  15 +Depending on the .net framework or platform you might want to enable/disable certain features of SimpleJson. You can read
  16 +more about it at https://github.com/facebook-csharp-sdk/simple-json/wiki/Conditional-Compilation-Symbols

0 comments on commit c30d1a1

Please sign in to comment.
Something went wrong with that request. Please try again.