public void AddBuildLogic <T>(Dictionary <string, int> logics) { var faceName = typeof(T).Name; if (BuildOrderLogic.ContainsKey(faceName)) { BuildOrderLogic[faceName] = logics.Select(d => new BuildLogic(d.Key, d.Value)).ToList(); } else { BuildOrderLogic.Add(faceName, logics.Select(d => new BuildLogic(d.Key, d.Value)).ToList()); } }
public void AddBuildLogic <T>(IEnumerable <XFrmWorkAttribute> items) { var faceName = typeof(T).Name; if (BuildOrderLogic.ContainsKey(faceName)) { BuildOrderLogic[faceName] = items.Select(d => new BuildLogic(d.Name)).ToList(); } else { BuildOrderLogic.Add(faceName, items.Select(d => new BuildLogic(d.Name)).ToList()); } }
public void AddBuildLogic <T>(IEnumerable <BuildLogic> logics) { var faceName = typeof(T).Name; if (BuildOrderLogic.ContainsKey(faceName)) { BuildOrderLogic[faceName] = logics.ToList(); } else { BuildOrderLogic.Add(faceName, logics.ToList()); } }