v1.0.0
This commit is contained in:
11
CC.Yi.Common/CC.Yi.Common.csproj
Normal file
11
CC.Yi.Common/CC.Yi.Common.csproj
Normal file
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
12
CC.Yi.Common/JsonFactory.cs
Normal file
12
CC.Yi.Common/JsonFactory.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace CC.Yi.Common
|
||||
{
|
||||
public static class JsonFactory
|
||||
{
|
||||
public static string JsonToString(object q)
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(q);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user