This commit is contained in:
rafael-aero
2022-03-25 10:30:51 +01:00
parent 9c89711d59
commit e643d0db08
3 changed files with 17 additions and 5 deletions

View File

@@ -533,11 +533,7 @@ namespace ElectronNET.API
{
public CamelCaseNewtonsoftJsonSerializer() : base()
{
}
public override JsonSerializerSettings CreateOptions()
{
return new JsonSerializerSettings()
OptionsProvider = () => new JsonSerializerSettings()
{
ContractResolver = new CamelCasePropertyNamesContractResolver(),
NullValueHandling = NullValueHandling.Ignore,

View File

@@ -47,5 +47,9 @@ This package contains the API to access the "native" electron API.</Description>
<PackageReference Include="SocketIOClient.Newtonsoft.Json" Version="3.0.0" />-->
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SocketIOClient.Newtonsoft.Json\SocketIOClient.Newtonsoft.Json.csproj" />
<ProjectReference Include="..\SocketIOClient\SocketIOClient.csproj" />
</ItemGroup>
</Project>