System.Threading.OverlappedData.ReInitialize C# (CSharp) Method

ReInitialize() private method

private ReInitialize ( ) : void
return void
        internal void ReInitialize()
        {
            m_asyncResult = null;
            m_iocb = null;
            m_iocbHelper = null;
            m_overlapped = null;
            m_userObject = null;
            BCLDebug.Assert(m_pinSelf.IsNull(), "OverlappedData has not been freed: m_pinSelf");
            m_pinSelf = (IntPtr)0;
            m_userObjectInternal = (IntPtr)0;
            BCLDebug.Assert(m_AppDomainId == 0 || m_AppDomainId == AppDomain.CurrentDomain.Id, "OverlappedData is not in the current domain");
            m_AppDomainId = 0;
			m_nativeOverlapped.EventHandle = (IntPtr)0;
            m_isArray = 0;
            m_nativeOverlapped.InternalHigh = (IntPtr)0;
        }

Usage Example

        internal static void CacheOverlappedData(OverlappedData data)
        {
            data.ReInitialize();

            // this is, by definition, a recently-used object
            s_usedSinceLastGC.Push(data);
        }
All Usage Examples Of System.Threading.OverlappedData::ReInitialize