Exemple #1
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            ItemMetaData imd = (ItemMetaData)(obj);

            return(imd.m_type == m_type);
        }
Exemple #2
0
 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);
     }
 }