public ulong GetSymbolImportAddress(ImageSymbolImport import, bool is32Bit) { int index = SymbolImports.IndexOf(import); if (index == -1) throw new ArgumentException("Symbol is not present in the module import.", "import"); return (ulong)(ImportAddressTableRva + index * (is32Bit ? sizeof (uint) : sizeof (ulong))); }