All pastes #620496 Raw Edit

Zeug

public text v1 · immutable
·published 2007-07-15 15:08 UTC
rendered paste body
        private static void CreateThread( object method, object data )
        {
            // create a callback
            WaitCallback callback = new WaitCallback( method );

            // setup thread
            ThreadPool.QueueUserWorkItem( callback, data );
        }