Skip to content

Commit d1fccb7

Browse files
committed
小优化
1 parent 86d0e50 commit d1fccb7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Quick.Protocol/QpNoticeInfo.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
using System.Text.Json;
2-
using System;
3-
using System.Collections.Generic;
1+
using System;
42
using System.ComponentModel;
53
using System.Reflection;
6-
using System.Text;
7-
using System.Text.Json.Serialization;
84
using System.Text.Json.Nodes;
95

106
namespace Quick.Protocol
@@ -46,7 +42,7 @@ public QpNoticeInfo(string name, string description, Type noticeType, object def
4642
this.noticeType = noticeType;
4743
NoticeTypeName = noticeType.FullName;
4844
this.noticeSerializer = noticeSerializer;
49-
NoticeTypeSchemaSample = JsonNode.Parse(noticeSerializer.Serialize(defaultNoticeTypeInstance)).ToString();
45+
NoticeTypeSchemaSample = noticeSerializer.Serialize(defaultNoticeTypeInstance);
5046
}
5147

5248
/// <summary>

0 commit comments

Comments
 (0)