This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using System . IO ;
4- using System . Text . RegularExpressions ;
54using ServiceStack . Text . Common ;
65using ServiceStack . Text . Json ;
76
@@ -213,20 +212,10 @@ public JsonValue(string json)
213212 this . json = json ;
214213 }
215214
216- public T As < T > ( )
217- {
218- return JsonSerializer . DeserializeFromString < T > ( json ) ;
219- }
215+ public T As < T > ( ) => JsonSerializer . DeserializeFromString < T > ( json ) ;
220216
221- public override string ToString ( )
222- {
223- return json ;
224- }
217+ public override string ToString ( ) => json ;
225218
226- public void WriteTo ( ITypeSerializer serializer , TextWriter writer )
227- {
228- writer . Write ( json ?? JsonUtils . Null ) ;
229- }
219+ public void WriteTo ( ITypeSerializer serializer , TextWriter writer ) => writer . Write ( json ?? JsonUtils . Null ) ;
230220 }
231-
232221}
Original file line number Diff line number Diff line change 1111//
1212
1313using System ;
14- using System . Globalization ;
1514using System . IO ;
1615using System . Net ;
1716using System . Text ;
1817using ServiceStack . Text . Common ;
1918using ServiceStack . Text . Json ;
20- using ServiceStack . Text . Pools ;
2119
2220namespace ServiceStack . Text
2321{
You can’t perform that action at this time.
0 commit comments