static void OnCancel(object obj)
        {
            Fx.Assert(obj != null, "obj should not be null.");
            IOThreadCancellationTokenSource thisPtr = (IOThreadCancellationTokenSource)obj;

            thisPtr.Cancel();
        }
        private static void OnCancel(object obj)
        {
            IOThreadCancellationTokenSource oThreadCancellationTokenSource = (IOThreadCancellationTokenSource)obj;

            oThreadCancellationTokenSource.Cancel();
        }