Ejemplo n.º 1
0
        internal void AddConst(string key, string keySameUniverseIdentifier = null)
        {
            ConstDictionary consts = _modelDataStructure.Consts;

            if (!consts.ContainsKey(key))
            {
                if (keySameUniverseIdentifier == null)
                {
                    string uni = _universeIdentifier + consts.CurrIndex;
                    consts.Add(key, uni);
                    consts.CurrIndex++;
                    _universe.Add(uni);
                }
                else
                {
                    consts.Add(key, consts[keySameUniverseIdentifier]);
                }
            }
        }
Ejemplo n.º 2
0
        internal string AddConst()
        {
            ConstDictionary consts = _modelDataStructure.Consts;
            string          key    = GENERIC_IDENTIFIER + _genericIndex;

            _genericIndex++;
            string uni = _universeIdentifier + consts.CurrIndex++;

            consts.Add(key, uni);
            _universe.Add(uni);

            return(key);
        }