using System.Collections.Generic; using System.Linq; namespace OS.Spin.Modle.BusinessLayer { public class MGateWidth { private Dictionary _gates = new Dictionary(); public void SetGateWidthById(int id,int width) { _gates[id] = width; } public int GetSumWidth() { return _gates.Values.Sum(); } } }