API
GC.KeepAlive
Keeps the specified object alive until this call in the current routine.
Formal Syntax & Structure
csharp syntaxcsharp
GC.KeepAlive(ticket);Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.GC.KeepAlive(ticket);