在MSDN指出该方法返回
The MSDN states that the method returns
true,如果该方法成功地 排队; NotSupportedException异常是 如果抛出的工作项目不排队。
true if the method is successfully queued; NotSupportedException is thrown if the work item is not queued.
有关测试的目的如何让该方法返回假
?或者它只是一个次优级的设计?
For testing purposes how to get the method to return false
? Or it is just a "suboptimal" class design?
在查看源$ C $ C的反射,似乎在code,可以返回假的唯一部件就是调用如下:
In looking at the source code in Reflector, it seems the only part of the code that could return "false" is a call to the following:
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern bool AdjustThreadsInPool(uint QueueLength);
上一篇:什么是去除的最佳方式< BR>标签从字符串的结尾?字符串、结尾、标签、方式
下一篇:为什么Windows Forms和图书馆之间AppDomain.CurrentDomain.BaseDirectory不同图书馆、不同、Forms、Windows