从动态程序集中删除类型

时间:2017-01-10 00:51:15

标签: c# typebuilder assemblybuilder

我使用char tBuffer[32]; float secondsElapsed = 0; clock_t start = clock(), end; do { fd_set rfd; FD_ZERO(&rfd); FD_SET(clientSocket, &rfd); struct timeval timeout; timeout.tv_sec = TIMER - secondsElapsed; timeout.tv_usec = 0; int ret = select(clientSocket+1, &rfd, NULL, NULL, &timeout); if (ret == -1) { myPlayer->dcPlayer(); break; } if (ret == 0) { // timeout ... break; } // data available, read it... ret = recv(clientSocket, tBuffer, sizeof(tBuffer), 0); if (ret <= 0) { myPlayer->dcPlayer(); break; } // use tBuffer up to ret number of bytes... if (... /*no more data is expected*/) { break; } end = clock(); secondsElapsed = end - start; // time difference is now a float seconds /= CLOCKS_PER_SEC; // this division is now floating point } while (secondsElapsed <= TIMER); / AssemblyBuilder / ModuleBuilder创建了一个新类型。有没有办法在以后从同一个运行时删除此类型?

1 个答案:

答案 0 :(得分:1)

不,在运行时加载程序集后,您无法修改/卸载程序集。