Skip to content

Commit

Permalink
[修改]1. 修改List的字段属性设置
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Jan 24, 2025
1 parent ca46a05 commit 9bb0cd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ProtoExport/ProtoBuffServerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names
sb.AppendLine($"\t\t[ProtoMember({operationField.Members})]");
if (operationField.IsRepeated)
{
sb.AppendLine($"\t\tpublic List<{operationField.Type}> {operationField.Name} = new List<{operationField.Type}>();");
sb.AppendLine($"\t\tpublic List<{operationField.Type}> {operationField.Name} {{ get; set; }} = new List<{operationField.Type}>();");
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion ProtoExport/ProtoBuffUnityHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names
sb.AppendLine($"\t\t[ProtoMember({operationField.Members})]");
if (operationField.IsRepeated)
{
sb.AppendLine($"\t\tpublic List<{operationField.Type}> {operationField.Name} = new List<{operationField.Type}>();");
sb.AppendLine($"\t\tpublic List<{operationField.Type}> {operationField.Name} {{ get; set; }} = new List<{operationField.Type}>();");
}
else
{
Expand Down

0 comments on commit 9bb0cd1

Please sign in to comment.