Ejemplo n.º 1
0
        /// <summary>Retrieves a named global from the module</summary>
        /// <param name="name">Name of the global</param>
        /// <returns><see cref="GlobalVariable"/> or <see langword="default"/> if not found</returns>
        public GlobalVariable GetNamedGlobal(string name)
        {
            ThrowIfDisposed( );

            var hGlobal = ModuleHandle.GetNamedGlobal(name);

            return(hGlobal == default ? default : Value.FromHandle <GlobalVariable>(hGlobal));
        }