public LayoutProperty Add(LayoutProperty p) { try { m_properties.Add(p.HashValue, p); return p; } catch(ArgumentException) { // duplicate entry: fail silently and return existing property return (LayoutProperty) m_properties[p.HashValue]; } }
public bool Contains(LayoutProperty p) { return m_properties.ContainsKey(p.HashValue); }