Skip to content

Commit

Permalink
测试解析内容
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Oct 9, 2024
1 parent 0095603 commit adbaf9e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Workbench/WebalyeeceeNujayuyajere/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// See https://aka.ms/new-console-template for more information

using System.Diagnostics;
using System.Text.Json.Nodes;

var json = """
{"cId":"41040e95-19f0-4674-9a19-41ae9ac675ef","cSize":554661,"cVersion":1,"userId":"2ced2d79de0f401b126ea6a347475c51","userName":"lindexi"}
""";

var jsonNode = JsonNode.Parse(json);
var traceId = jsonNode?["cId"]?.ToString();

Console.WriteLine("Hello, World!");
10 changes: 10 additions & 0 deletions Workbench/WebalyeeceeNujayuyajere/WebalyeeceeNujayuyajere.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
22 changes: 22 additions & 0 deletions Workbench/WebalyeeceeNujayuyajere/WebalyeeceeNujayuyajere.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebalyeeceeNujayuyajere", "WebalyeeceeNujayuyajere.csproj", "{DD510806-B98E-4840-A640-D046D243BACD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DD510806-B98E-4840-A640-D046D243BACD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DD510806-B98E-4840-A640-D046D243BACD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DD510806-B98E-4840-A640-D046D243BACD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DD510806-B98E-4840-A640-D046D243BACD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

0 comments on commit adbaf9e

Please sign in to comment.