From 270514835dce49180c92ca1d233f97891e42981a Mon Sep 17 00:00:00 2001 From: Blank Date: Fri, 24 Jan 2025 19:52:04 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=A2=9E=E5=8A=A0]1.=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=B1=BB=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProtoExport/ProtoBuffServerHelper.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ProtoExport/ProtoBuffServerHelper.cs b/ProtoExport/ProtoBuffServerHelper.cs index 8719519..29e6da4 100644 --- a/ProtoExport/ProtoBuffServerHelper.cs +++ b/ProtoExport/ProtoBuffServerHelper.cs @@ -49,6 +49,7 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names sb.AppendLine($"\t/// {operationCodeInfo.Description}"); sb.AppendLine($"\t/// "); sb.AppendLine($"\t[ProtoContract]"); + sb.AppendLine($"\t[System.ComponentModel.Description(\"{operationCodeInfo.Description}\")]"); if (string.IsNullOrEmpty(operationCodeInfo.ParentClass)) { sb.AppendLine($"\tpublic sealed class {operationCodeInfo.Name}");