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); }
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; }