Skip to content

Commit

Permalink
[增加]1. 增加类描述
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Jan 24, 2025
1 parent ff51381 commit 2705148
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ProtoExport/ProtoBuffServerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names
sb.AppendLine($"\t/// {operationCodeInfo.Description}");
sb.AppendLine($"\t/// </summary>");
sb.AppendLine($"\t[ProtoContract]");
sb.AppendLine($"\t[System.ComponentModel.Description(\"{operationCodeInfo.Description}\")]");
if (string.IsNullOrEmpty(operationCodeInfo.ParentClass))
{
sb.AppendLine($"\tpublic sealed class {operationCodeInfo.Name}");
Expand Down

0 comments on commit 2705148

Please sign in to comment.