public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } ItemMetaData imd = (ItemMetaData)(obj); return(imd.m_type == m_type); }
public void SetItemMetaData(string path, EItemType type) { if (ItemMetaData.ContainsKey(path)) { if (ItemMetaData[path].m_type != type) { throw new Exception(string.Format("'{0}' type has changed: was {1}, now {2}", path, ItemMetaData[path].m_type, type)); } } else { ItemMetaData[path] = new ItemMetaData(type); } }