阅读背景:

检测C#库中主线程的运行

来源:互联网 

I'm creating a C# dll, which is going to be used by others developers in WinForms. For some reasons, I want to detect, if methods from this library, are called from Main (GUI) Thread and warn developer he has done such a thing (ie. in log file). Is there any reasonable way to detect calling method from main thread? Remember I have no access to WinForm application.I'm creating a C# dll, which is going to be use




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: