Amib.Threading.Internal.EventWaitHandleFactory.CreateAutoResetEvent C# (CSharp) Method

CreateAutoResetEvent() public static method

Create a new AutoResetEvent object
public static CreateAutoResetEvent ( ) : AutoResetEvent
return System.Threading.AutoResetEvent
        public static AutoResetEvent CreateAutoResetEvent()
        {
            AutoResetEvent waitHandle = new AutoResetEvent(false);

            #if (WindowsCE)
            ReplaceEventHandle(waitHandle, false, false);
            #endif

            return waitHandle;
        }