c#在textbox只显示:之后内容{"code":200,"result":{"id":1008,"platformNo":"123456","detectionRound":1}}
时间: 2023-12-11 08:32:39 浏览: 17
C# XAML MEF笔记
以下是在C#中实现在textbox只显示:之后内容{"code":200,"result":{"id":1008,"platformNo":"123456","detectionRound":1}}的代码:
```csharp
textBox1.Text = ":{\"code\":200,\"result\":{\"id\":1008,\"platformNo\":\"123456\",\"detectionRound\":1}}";
```
这段代码将在textbox中显示:{"code":200,"result":{"id":1008,"platformNo":"123456","detectionRound":1}}。
阅读全文