예제 #1
0
        /// <summary>
        /// Gets the field type id and offset of the specified type.
        /// </summary>
        /// <param name="module">The module.</param>
        /// <param name="typeId">The type identifier.</param>
        /// <param name="fieldName">Name of the field.</param>
        public Tuple <uint, int> GetTypeFieldTypeAndOffset(Module module, uint typeId, string fieldName)
        {
            ISymbolProviderModule symbolProviderModule = GetSymbolProviderModule(module);

            if (symbolProviderModule == null)
            {
                return(FallbackSymbolProvider.GetTypeFieldTypeAndOffset(module, typeId, fieldName));
            }

            return(symbolProviderModule.GetTypeFieldTypeAndOffset(typeId, fieldName));
        }
예제 #2
0
        /// <summary>
        /// Gets the field type id and offset of the specified type.
        /// </summary>
        /// <param name="module">The module.</param>
        /// <param name="typeId">The type identifier.</param>
        /// <param name="fieldName">Name of the field.</param>
        public Tuple <uint, int> GetTypeFieldTypeAndOffset(Module module, uint typeId, string fieldName)
        {
            ISymbolProviderModule diaModule = GetDiaModule(module);

            return(diaModule.GetTypeFieldTypeAndOffset(module, typeId, fieldName));
        }