コード例 #1
0
        public static SymbolEntity New(DbgEntityDescriptor aDescriptor, FSEntity aFSEntity)
        {
            SymbolEntity ret = null;

            // Validate that it's a supported file
            if (aFSEntity.Exists && aFSEntity.IsFile)
            {
                string          type         = string.Empty;
                DbgEngine       engine       = aDescriptor.Engine;
                DbgEngineSymbol symbolEngine = engine.Symbols;
                bool            supported    = symbolEngine.IsSupported(aFSEntity.FullName, out type);
                //
                if (supported)
                {
                    ret = new SymbolEntity(aDescriptor, aFSEntity);
                }
            }
            //
            return(ret);
        }