Exemple #1
0
        public DiaSymbol FindClassSymbol(String name, SymTagEnum tag)
        {
            DiaSymbol  res = null;
            IDiaSymbol sym = Util.FindClassSymbol(name, m_symbol, tag);

            if (sym != null)
            {
                if ((SymTagEnum)sym.symTag == SymTagEnum.SymTagData)
                {
                    res = new DiaDataSymbol(sym);
                }
                else
                {
                    res = new DiaSymbol(sym);
                }
            }

            return(res);
        }
Exemple #2
0
    public DiaSymbol FindClassSymbol(String name, SymTagEnum tag)
    {
        DiaSymbol res = null;
        IDiaSymbol sym = Util.FindClassSymbol(name, m_symbol, tag);

        if (sym != null)
        {
            if ((SymTagEnum)sym.symTag == SymTagEnum.SymTagData)
                res = new DiaDataSymbol(sym);
            else
                res = new DiaSymbol(sym);
        }

        return res;
    }