|
1金钱
SerialStream类里SerialStream函数里
ThreadPool.BindHandle(_handle)中
ret = BindIOCompletionCallbackNative(osHandle.DangerousGetHandle());
这个函数是如何调用的呢?
api里只有BindIOCompletionCallback 然后在这个类的后面只有
[System.Security.SecurityCritical] // auto-generated
[ResourceExposure(ResourceScope.None)]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
private static extern bool BindIOCompletionCallbackNative(IntPtr fileHandle);
BindIOCompletionCallbackNative这个是API还是.net的代码。
|
|