32
32
//#define SIMPLE_JSON_DATACONTRACT
33
33
34
34
// NOTE: uncomment the following line to enable IReadOnlyCollection<T> and IReadOnlyList<T> support.
35
- // #define SIMPLE_JSON_READONLY_COLLECTIONS
35
+ #define SIMPLE_JSON_READONLY_COLLECTIONS
36
36
37
37
// NOTE: uncomment the following line to disable linq expressions/compiled lambda (better performance) instead of method.invoke().
38
38
// define if you are using .net framework <= 3.0 or < WP7.5
@@ -81,12 +81,12 @@ namespace Elasticsearch.Net
81
81
class JsonArray : List < object >
82
82
{
83
83
/// <summary>
84
- /// Initializes a new instance of the <see cref="JsonArray"/> class.
84
+ /// Initializes a new instance of the <see cref="JsonArray"/> class.
85
85
/// </summary>
86
86
public JsonArray ( ) { }
87
87
88
88
/// <summary>
89
- /// Initializes a new instance of the <see cref="JsonArray"/> class.
89
+ /// Initializes a new instance of the <see cref="JsonArray"/> class.
90
90
/// </summary>
91
91
/// <param name="capacity">The capacity of the json array.</param>
92
92
public JsonArray ( int capacity ) : base ( capacity ) { }
@@ -480,7 +480,7 @@ public override IEnumerable<string> GetDynamicMemberNames()
480
480
/// <summary>
481
481
/// This class encodes and decodes JSON strings.
482
482
/// Spec. details, see http://www.json.org/
483
- ///
483
+ ///
484
484
/// JSON uses Arrays and Objects. These correspond here to the datatypes JsonArray(IList<object>) and JsonObject(IDictionary<string,object>).
485
485
/// All numbers are parsed to doubles.
486
486
/// </summary>
@@ -1176,7 +1176,7 @@ public static DataContractJsonSerializerStrategy DataContractJsonSerializerStrat
1176
1176
1177
1177
#endif
1178
1178
}
1179
-
1179
+
1180
1180
[ GeneratedCode ( "simple-json" , "1.0.0" ) ]
1181
1181
#if SIMPLE_JSON_INTERNAL
1182
1182
internal
@@ -1289,7 +1289,7 @@ public virtual object DeserializeObject(object value, Type type)
1289
1289
1290
1290
if ( value == null )
1291
1291
return null ;
1292
-
1292
+
1293
1293
object obj = null ;
1294
1294
1295
1295
if ( str != null )
@@ -1327,7 +1327,7 @@ public virtual object DeserializeObject(object value, Type type)
1327
1327
}
1328
1328
else if ( value is bool )
1329
1329
return value ;
1330
-
1330
+
1331
1331
bool valueIsLong = value is long ;
1332
1332
bool valueIsDouble = value is double ;
1333
1333
if ( ( valueIsLong && type == typeof ( long ) ) || ( valueIsDouble && type == typeof ( double ) ) )
@@ -2080,4 +2080,4 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
2080
2080
// ReSharper restore LoopCanBeConvertedToQuery
2081
2081
// ReSharper restore RedundantExplicitArrayCreation
2082
2082
// ReSharper restore SuggestUseVarKeywordEvident
2083
- }
2083
+ }
0 commit comments