Skip to content

Commit aafd8c8

Browse files
committed
Merge
2 parents 9e90079 + 0d83daf commit aafd8c8

File tree

218 files changed

+5011
-14599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+5011
-14599
lines changed

RestSharp.sln

Lines changed: 34 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,16 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Serializers", "Serializers"
1717
EndProject
1818
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestSharp.Tests.Shared", "test\RestSharp.Tests.Shared\RestSharp.Tests.Shared.csproj", "{73896669-F05C-41AC-9F6F-A11F549EDEDC}"
1919
EndProject
20-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestSharp.Serializers.Tests", "test\RestSharp.Serializers.Tests\RestSharp.Serializers.Tests.csproj", "{8BF81225-2F85-4412-AD18-6579CBA1879B}"
21-
EndProject
22-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestSharp.Serializers.Utf8Json", "src\RestSharp.Serializers.Utf8Json\RestSharp.Serializers.Utf8Json.csproj", "{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}"
23-
EndProject
24-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestSharp.Serializers.SystemTextJson", "src\RestSharp.Serializers.SystemTextJson\RestSharp.Serializers.SystemTextJson.csproj", "{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}"
20+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestSharp.Serializers.Json.Tests", "test\RestSharp.Serializers.Json.Tests\RestSharp.Serializers.Json.Tests.csproj", "{8BF81225-2F85-4412-AD18-6579CBA1879B}"
2521
EndProject
2622
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Perf", "Perf", "{1C42C435-8826-4044-8775-A1DA40EF4866}"
2723
EndProject
2824
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestSharp.Benchmarks", "benchmarks\RestSharp.Benchmarks\RestSharp.Benchmarks.csproj", "{997AEFE5-D7D4-4033-A31A-07F476D6FE5D}"
2925
EndProject
3026
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestSharp.InteractiveTests", "test\RestSharp.InteractiveTests\RestSharp.InteractiveTests.csproj", "{6D7D1D60-4473-4C52-800C-9B892C6640A5}"
3127
EndProject
28+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestSharp.Serializers.Xml.Tests", "test\RestSharp.Serializers.Xml.Tests\RestSharp.Serializers.Xml.Tests.csproj", "{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}"
29+
EndProject
3230
Global
3331
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3432
Debug.Appveyor|Any CPU = Debug.Appveyor|Any CPU
@@ -228,66 +226,6 @@ Global
228226
{8BF81225-2F85-4412-AD18-6579CBA1879B}.Release|x64.Build.0 = Release|Any CPU
229227
{8BF81225-2F85-4412-AD18-6579CBA1879B}.Release|x86.ActiveCfg = Release|Any CPU
230228
{8BF81225-2F85-4412-AD18-6579CBA1879B}.Release|x86.Build.0 = Release|Any CPU
231-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug.Appveyor|Any CPU.ActiveCfg = Debug|Any CPU
232-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug.Appveyor|Any CPU.Build.0 = Debug|Any CPU
233-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug.Appveyor|ARM.ActiveCfg = Debug|Any CPU
234-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug.Appveyor|ARM.Build.0 = Debug|Any CPU
235-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug.Appveyor|Mixed Platforms.ActiveCfg = Debug|Any CPU
236-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug.Appveyor|Mixed Platforms.Build.0 = Debug|Any CPU
237-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug.Appveyor|x64.ActiveCfg = Debug|Any CPU
238-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug.Appveyor|x64.Build.0 = Debug|Any CPU
239-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug.Appveyor|x86.ActiveCfg = Debug|Any CPU
240-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug.Appveyor|x86.Build.0 = Debug|Any CPU
241-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
242-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
243-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug|ARM.ActiveCfg = Debug|Any CPU
244-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug|ARM.Build.0 = Debug|Any CPU
245-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
246-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
247-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug|x64.ActiveCfg = Debug|Any CPU
248-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug|x64.Build.0 = Debug|Any CPU
249-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug|x86.ActiveCfg = Debug|Any CPU
250-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Debug|x86.Build.0 = Debug|Any CPU
251-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
252-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Release|Any CPU.Build.0 = Release|Any CPU
253-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Release|ARM.ActiveCfg = Release|Any CPU
254-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Release|ARM.Build.0 = Release|Any CPU
255-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
256-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Release|Mixed Platforms.Build.0 = Release|Any CPU
257-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Release|x64.ActiveCfg = Release|Any CPU
258-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Release|x64.Build.0 = Release|Any CPU
259-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Release|x86.ActiveCfg = Release|Any CPU
260-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3}.Release|x86.Build.0 = Release|Any CPU
261-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug.Appveyor|Any CPU.ActiveCfg = Debug|Any CPU
262-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug.Appveyor|Any CPU.Build.0 = Debug|Any CPU
263-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug.Appveyor|ARM.ActiveCfg = Debug|Any CPU
264-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug.Appveyor|ARM.Build.0 = Debug|Any CPU
265-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug.Appveyor|Mixed Platforms.ActiveCfg = Debug|Any CPU
266-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug.Appveyor|Mixed Platforms.Build.0 = Debug|Any CPU
267-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug.Appveyor|x64.ActiveCfg = Debug|Any CPU
268-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug.Appveyor|x64.Build.0 = Debug|Any CPU
269-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug.Appveyor|x86.ActiveCfg = Debug|Any CPU
270-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug.Appveyor|x86.Build.0 = Debug|Any CPU
271-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
272-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
273-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug|ARM.ActiveCfg = Debug|Any CPU
274-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug|ARM.Build.0 = Debug|Any CPU
275-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
276-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
277-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug|x64.ActiveCfg = Debug|Any CPU
278-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug|x64.Build.0 = Debug|Any CPU
279-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug|x86.ActiveCfg = Debug|Any CPU
280-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Debug|x86.Build.0 = Debug|Any CPU
281-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
282-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Release|Any CPU.Build.0 = Release|Any CPU
283-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Release|ARM.ActiveCfg = Release|Any CPU
284-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Release|ARM.Build.0 = Release|Any CPU
285-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
286-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
287-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Release|x64.ActiveCfg = Release|Any CPU
288-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Release|x64.Build.0 = Release|Any CPU
289-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Release|x86.ActiveCfg = Release|Any CPU
290-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE}.Release|x86.Build.0 = Release|Any CPU
291229
{997AEFE5-D7D4-4033-A31A-07F476D6FE5D}.Debug.Appveyor|Any CPU.ActiveCfg = Debug|Any CPU
292230
{997AEFE5-D7D4-4033-A31A-07F476D6FE5D}.Debug.Appveyor|Any CPU.Build.0 = Debug|Any CPU
293231
{997AEFE5-D7D4-4033-A31A-07F476D6FE5D}.Debug.Appveyor|ARM.ActiveCfg = Debug|Any CPU
@@ -348,6 +286,36 @@ Global
348286
{6D7D1D60-4473-4C52-800C-9B892C6640A5}.Release|x64.Build.0 = Release|Any CPU
349287
{6D7D1D60-4473-4C52-800C-9B892C6640A5}.Release|x86.ActiveCfg = Release|Any CPU
350288
{6D7D1D60-4473-4C52-800C-9B892C6640A5}.Release|x86.Build.0 = Release|Any CPU
289+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug.Appveyor|Any CPU.ActiveCfg = Debug|Any CPU
290+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug.Appveyor|Any CPU.Build.0 = Debug|Any CPU
291+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug.Appveyor|ARM.ActiveCfg = Debug|Any CPU
292+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug.Appveyor|ARM.Build.0 = Debug|Any CPU
293+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug.Appveyor|Mixed Platforms.ActiveCfg = Debug|Any CPU
294+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug.Appveyor|Mixed Platforms.Build.0 = Debug|Any CPU
295+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug.Appveyor|x64.ActiveCfg = Debug|Any CPU
296+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug.Appveyor|x64.Build.0 = Debug|Any CPU
297+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug.Appveyor|x86.ActiveCfg = Debug|Any CPU
298+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug.Appveyor|x86.Build.0 = Debug|Any CPU
299+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
300+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug|Any CPU.Build.0 = Debug|Any CPU
301+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug|ARM.ActiveCfg = Debug|Any CPU
302+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug|ARM.Build.0 = Debug|Any CPU
303+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
304+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
305+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug|x64.ActiveCfg = Debug|Any CPU
306+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug|x64.Build.0 = Debug|Any CPU
307+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug|x86.ActiveCfg = Debug|Any CPU
308+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Debug|x86.Build.0 = Debug|Any CPU
309+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Release|Any CPU.ActiveCfg = Release|Any CPU
310+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Release|Any CPU.Build.0 = Release|Any CPU
311+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Release|ARM.ActiveCfg = Release|Any CPU
312+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Release|ARM.Build.0 = Release|Any CPU
313+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
314+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Release|Mixed Platforms.Build.0 = Release|Any CPU
315+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Release|x64.ActiveCfg = Release|Any CPU
316+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Release|x64.Build.0 = Release|Any CPU
317+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Release|x86.ActiveCfg = Release|Any CPU
318+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51}.Release|x86.Build.0 = Release|Any CPU
351319
EndGlobalSection
352320
GlobalSection(SolutionProperties) = preSolution
353321
HideSolutionNode = FALSE
@@ -361,9 +329,8 @@ Global
361329
{4205A187-9732-4DA8-B0BE-77A2C6B8C6A1} = {8C7B43EB-2F93-483C-B433-E28F9386AD67}
362330
{73896669-F05C-41AC-9F6F-A11F549EDEDC} = {9051DDA0-E563-45D5-9504-085EBAACF469}
363331
{8BF81225-2F85-4412-AD18-6579CBA1879B} = {9051DDA0-E563-45D5-9504-085EBAACF469}
364-
{D5DCF088-1126-4E6A-A175-CF8B6D5089A3} = {8C7B43EB-2F93-483C-B433-E28F9386AD67}
365-
{6914F0EF-F6D2-4BE6-8477-553EBBFF3BEE} = {8C7B43EB-2F93-483C-B433-E28F9386AD67}
366332
{997AEFE5-D7D4-4033-A31A-07F476D6FE5D} = {1C42C435-8826-4044-8775-A1DA40EF4866}
367333
{6D7D1D60-4473-4C52-800C-9B892C6640A5} = {9051DDA0-E563-45D5-9504-085EBAACF469}
334+
{E6D94C12-9AD7-46E6-AB62-3676F25FDE51} = {9051DDA0-E563-45D5-9504-085EBAACF469}
368335
EndGlobalSection
369336
EndGlobal

benchmarks/RestSharp.Benchmarks/Directory.Build.props

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
using BenchmarkDotNet.Running;
22

3-
namespace RestSharp.Benchmarks
4-
{
5-
class Program
6-
{
7-
public static void Main(string[] args) => BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
8-
}
9-
}
3+
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,23 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<IsPackable>false</IsPackable>
6+
<LangVersion>10</LangVersion>
7+
<ImplicitUsings>enable</ImplicitUsings>
68
</PropertyGroup>
79

810
<ItemGroup>
9-
<PackageReference Include="AutoFixture" Version="4.17.0" />
10-
<PackageReference Include="BenchmarkDotNet" Version="0.13.1" />
11-
<PackageReference Include="Utf8Json" Version="1.3.7" />
12-
</ItemGroup>
13-
14-
<ItemGroup>
15-
<ProjectReference Include="..\..\src\RestSharp.Serializers.NewtonsoftJson\RestSharp.Serializers.NewtonsoftJson.csproj" />
16-
<ProjectReference Include="..\..\src\RestSharp.Serializers.Utf8Json\RestSharp.Serializers.Utf8Json.csproj" />
17-
<ProjectReference Include="..\..\test\RestSharp.Tests.Shared\RestSharp.Tests.Shared.csproj" />
18-
</ItemGroup>
19-
20-
<ItemGroup>
21-
<Compile Remove="BenchmarkDotNet.Artifacts\**" />
11+
<PackageReference Include="AutoFixture" Version="4.17.0" />
12+
<PackageReference Include="BenchmarkDotNet" Version="0.13.1" />
2213
</ItemGroup>
23-
2414
<ItemGroup>
25-
<EmbeddedResource Remove="BenchmarkDotNet.Artifacts\**" />
15+
<ProjectReference Include="..\..\src\RestSharp.Serializers.NewtonsoftJson\RestSharp.Serializers.NewtonsoftJson.csproj" />
16+
<ProjectReference Include="..\..\test\RestSharp.Tests.Shared\RestSharp.Tests.Shared.csproj" />
2617
</ItemGroup>
27-
2818
<ItemGroup>
29-
<None Remove="BenchmarkDotNet.Artifacts\**" />
19+
<Compile Remove="BenchmarkDotNet.Artifacts\**" />
20+
<EmbeddedResource Remove="BenchmarkDotNet.Artifacts\**" />
21+
<None Remove="BenchmarkDotNet.Artifacts\**" />
3022
</ItemGroup>
31-
3223
</Project>

benchmarks/RestSharp.Benchmarks/Serializers/JsonNetDeserializeBenchmarks.cs

Lines changed: 0 additions & 47 deletions
This file was deleted.

benchmarks/RestSharp.Benchmarks/Serializers/JsonNetSerializeBenchmarks.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
// Copyright © 2009-2020 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
14-
//
15-
16-
using System.Collections.Generic;
17-
using System.Linq;
181
using AutoFixture;
192
using BenchmarkDotNet.Attributes;
203
using RestSharp.Serializers.NewtonsoftJson;
@@ -24,7 +7,7 @@ namespace RestSharp.Benchmarks.Serializers
247
[MemoryDiagnoser]
258
public class JsonNetSerializeBenchmarks
269
{
27-
readonly JsonNetSerializer _serializer = new JsonNetSerializer();
10+
readonly JsonNetSerializer _serializer = new();
2811

2912
List<TestClass> _fakeData;
3013

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,13 @@
1-
// Copyright © 2009-2020 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
14-
//
1+
namespace RestSharp.Benchmarks.Serializers;
152

16-
using System.Collections.Generic;
3+
public class TestClass {
4+
public string SimpleString { get; set; }
5+
public int SimpleInt { get; set; }
6+
public List<Subclass> List { get; set; }
7+
public Subclass Sub { get; set; }
178

18-
namespace RestSharp.Benchmarks.Serializers
19-
{
20-
public class TestClass
21-
{
22-
public string SimpleString { get; set; }
23-
public int SimpleInt { get; set; }
24-
public List<Subclass> List { get; set; }
25-
public Subclass Sub { get; set; }
26-
27-
public class Subclass
28-
{
29-
public string Thing { get; set; }
30-
public int AnotherThing { get; set; }
31-
}
9+
public class Subclass {
10+
public string Thing { get; set; }
11+
public int AnotherThing { get; set; }
3212
}
33-
}
13+
}

benchmarks/RestSharp.Benchmarks/Serializers/Utf8JsonDeserializeBenchmarks.cs

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)