3232//#define SIMPLE_JSON_DATACONTRACT
3333
3434// 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
3636
3737// NOTE: uncomment the following line to disable linq expressions/compiled lambda (better performance) instead of method.invoke().
3838// define if you are using .net framework <= 3.0 or < WP7.5
@@ -81,12 +81,12 @@ namespace Elasticsearch.Net
8181 class JsonArray : List < object >
8282 {
8383 /// <summary>
84- /// Initializes a new instance of the <see cref="JsonArray"/> class.
84+ /// Initializes a new instance of the <see cref="JsonArray"/> class.
8585 /// </summary>
8686 public JsonArray ( ) { }
8787
8888 /// <summary>
89- /// Initializes a new instance of the <see cref="JsonArray"/> class.
89+ /// Initializes a new instance of the <see cref="JsonArray"/> class.
9090 /// </summary>
9191 /// <param name="capacity">The capacity of the json array.</param>
9292 public JsonArray ( int capacity ) : base ( capacity ) { }
@@ -480,7 +480,7 @@ public override IEnumerable<string> GetDynamicMemberNames()
480480 /// <summary>
481481 /// This class encodes and decodes JSON strings.
482482 /// Spec. details, see http://www.json.org/
483- ///
483+ ///
484484 /// JSON uses Arrays and Objects. These correspond here to the datatypes JsonArray(IList<object>) and JsonObject(IDictionary<string,object>).
485485 /// All numbers are parsed to doubles.
486486 /// </summary>
@@ -1176,7 +1176,7 @@ public static DataContractJsonSerializerStrategy DataContractJsonSerializerStrat
11761176
11771177#endif
11781178 }
1179-
1179+
11801180 [ GeneratedCode ( "simple-json" , "1.0.0" ) ]
11811181#if SIMPLE_JSON_INTERNAL
11821182 internal
@@ -1289,7 +1289,7 @@ public virtual object DeserializeObject(object value, Type type)
12891289
12901290 if ( value == null )
12911291 return null ;
1292-
1292+
12931293 object obj = null ;
12941294
12951295 if ( str != null )
@@ -1327,7 +1327,7 @@ public virtual object DeserializeObject(object value, Type type)
13271327 }
13281328 else if ( value is bool )
13291329 return value ;
1330-
1330+
13311331 bool valueIsLong = value is long ;
13321332 bool valueIsDouble = value is double ;
13331333 if ( ( valueIsLong && type == typeof ( long ) ) || ( valueIsDouble && type == typeof ( double ) ) )
@@ -2080,4 +2080,4 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
20802080// ReSharper restore LoopCanBeConvertedToQuery
20812081// ReSharper restore RedundantExplicitArrayCreation
20822082// ReSharper restore SuggestUseVarKeywordEvident
2083- }
2083+ }
0 commit comments