|
@@ -1,7 +1,17 @@
|
|
|
- {cfgsGroupDicName}.TryGetValue({groupKey}, out var {list});
|
|
|
+
|
|
|
+ List<string> {cfgsGroupDicName}List = new List<string>();
|
|
|
+ string[] {cfgsGroupDicName}KeyGroup = {groupKey}.Split('_');
|
|
|
+ for (int i = 0; i < {cfgsGroupDicName}KeyGroup.Length; i++)
|
|
|
+ {
|
|
|
+ FieldInfo info = cfg.GetType().GetField({cfgsGroupDicName}KeyGroup[i]);
|
|
|
+ {cfgsGroupDicName}List.Add(info.GetValue(cfg).ToString());
|
|
|
+ }
|
|
|
+
|
|
|
+ string {cfgsGroupDicName}Key = string.Join("_", {cfgsGroupDicName}List);
|
|
|
+ {cfgsGroupDicName}.TryGetValue({cfgsGroupDicName}Key, out var {list});
|
|
|
if({list} == null)
|
|
|
{
|
|
|
{list} = new List<{CfgName}>();
|
|
|
- {cfgsGroupDicName}.Add({groupKey}, {list});
|
|
|
+ {cfgsGroupDicName}.Add({cfgsGroupDicName}Key, {list});
|
|
|
}
|
|
|
- {list}.Add(cfg);
|
|
|
+ {list}.Add(cfg);
|