Пример #1
0
        /// <summary>Add an alias to the module</summary>
        /// <param name="aliasee">Value being aliased</param>
        /// <param name="aliasName">Name of the alias</param>
        /// <returns><see cref="GlobalAlias"/> for the alias</returns>
        public GlobalAlias AddAlias(Value aliasee, string aliasName)
        {
            ThrowIfDisposed( );

            var handle = ModuleHandle.AddAlias(aliasee.NativeType.GetTypeRef( ), aliasee.ValueHandle, aliasName);

            return(Value.FromHandle <GlobalAlias>(handle) !);
        }