public override bool Equals(object obj) { if (obj is StaticSymbol) { StaticSymbol staticSymbol = (StaticSymbol)obj; return(m_uniqueName.Equals(staticSymbol.m_uniqueName)); } return(false); }
public void Add(StaticSymbol staticSymbol) { StaticSymbolWindows staticSymbolWindows = (StaticSymbolWindows)staticSymbol; string uniqueName = staticSymbolWindows.UniqueName; if (!m_globalMap.ContainsKey(uniqueName)) { m_globalMap.Add(uniqueName, staticSymbolWindows); } else { Error.Check(uniqueName.EndsWith(Symbol.NumberId), SimpleName(uniqueName), Message.Duplicate_global_name); } }