示例#1
0
        public void AddDataType(ProjectDataType data)
        {
            string s = data.GetIdentifier();

            if (dataStructDictionary.ContainsKey(s))
            {
                throw new Exception("Data with identifier \"" + data.GetIdentifier() +
                                    "\" was attempted to be added to the project multiple times.");
            }
            dataStructDictionary[s] = data;
        }