Skip to content

Commit 2705148

Browse files
committed
[增加]1. 增加类描述
1 parent ff51381 commit 2705148

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ProtoExport/ProtoBuffServerHelper.cs

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names
4949
sb.AppendLine($"\t/// {operationCodeInfo.Description}");
5050
sb.AppendLine($"\t/// </summary>");
5151
sb.AppendLine($"\t[ProtoContract]");
52+
sb.AppendLine($"\t[System.ComponentModel.Description(\"{operationCodeInfo.Description}\")]");
5253
if (string.IsNullOrEmpty(operationCodeInfo.ParentClass))
5354
{
5455
sb.AppendLine($"\tpublic sealed class {operationCodeInfo.Name}");

0 commit comments

Comments
 (0)