export-table-pulgin-csharp 1.1.180 → 1.1.181

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -181,7 +181,7 @@ ${(0, export_table_lib_1.foreach)(fields, f => {
181
181
  ${tempRecordsDictByMemberName} = new Dictionary<${memberType}, ${RowClass}[]>(Configs.Count);
182
182
  }
183
183
  var records = Configs.Where(c => c.${memberName} == ${paraName}).ToArray();
184
- if(!${tempRecordsDictByMemberName}.Add(${paraName}, records))
184
+ if(!${tempRecordsDictByMemberName}.TryAdd(${paraName}, records))
185
185
  {
186
186
  UnityEngine.Debug.LogError($"重复的配表字段值<${paraName}>: {${paraName}}");
187
187
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.1.180",
3
+ "version": "1.1.181",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {},
@@ -209,7 +209,7 @@ ${foreach(fields, f => {
209
209
  ${tempRecordsDictByMemberName} = new Dictionary<${memberType}, ${RowClass}[]>(Configs.Count);
210
210
  }
211
211
  var records = Configs.Where(c => c.${memberName} == ${paraName}).ToArray();
212
- if(!${tempRecordsDictByMemberName}.Add(${paraName}, records))
212
+ if(!${tempRecordsDictByMemberName}.TryAdd(${paraName}, records))
213
213
  {
214
214
  UnityEngine.Debug.LogError($"重复的配表字段值<${paraName}>: {${paraName}}");
215
215
  }