This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree 2 files changed +3
-16
lines changed
2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . IO ;
4
- using System . Text . RegularExpressions ;
5
4
using ServiceStack . Text . Common ;
6
5
using ServiceStack . Text . Json ;
7
6
@@ -213,20 +212,10 @@ public JsonValue(string json)
213
212
this . json = json ;
214
213
}
215
214
216
- public T As < T > ( )
217
- {
218
- return JsonSerializer . DeserializeFromString < T > ( json ) ;
219
- }
215
+ public T As < T > ( ) => JsonSerializer . DeserializeFromString < T > ( json ) ;
220
216
221
- public override string ToString ( )
222
- {
223
- return json ;
224
- }
217
+ public override string ToString ( ) => json ;
225
218
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 ) ;
230
220
}
231
-
232
221
}
Original file line number Diff line number Diff line change 11
11
//
12
12
13
13
using System ;
14
- using System . Globalization ;
15
14
using System . IO ;
16
15
using System . Net ;
17
16
using System . Text ;
18
17
using ServiceStack . Text . Common ;
19
18
using ServiceStack . Text . Json ;
20
- using ServiceStack . Text . Pools ;
21
19
22
20
namespace ServiceStack . Text
23
21
{
You can’t perform that action at this time.
0 commit comments