title: How to use GC.KeepAlive() and for what purpose?
body: <p>How can we use <a href="https://docs.microsoft.com/en-us/dotnet/api/system.gc.keepalive" rel="nofollow noreferrer"><code>GC.KeepAlive()</code></a> and what is the purpose?</p>
  <p>I transfer files from terminal (Windows-CE) to Server using Socket. The time needed for transfer is 8 minutes. After 5 minutes the Windows-CE shuts down (if touch screen not pressed)</p>
  <p>If I use <code>GC.KeepAlive()</code> for this, does this solve my problem?</p>