Mono.MicroThreads.Continuation.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
		public void Dispose()
		{
			Print("Dispose()");

			if (m_handle != IntPtr.Zero)
			{
				free_continuation(m_handle);
				m_handle = IntPtr.Zero;
			}

			GC.SuppressFinalize(this);
		}

Usage Example

        public void Dispose()
        {
            if (m_continuation != null)
            {
                m_continuation.Dispose();
                m_continuation = null;
            }

            m_startDelegate = null;
        }