How to invoke Garbage Collector programmatically?
Experience Level: Senior
Tags: .NET
Answer
To call garbage collector from a program, use code GC.Collect();
.
Related .NET job interview questions
What is Assembly Manifest?
.NET SeniorWhat is the Managed Code?
.NET JuniorWhat is the Garbage Collector in .NET Framework?
.NET MediorWhat is Common Language Specification (CLS)?
.NET SeniorWhat is common Type System (CTS)?
.NET Senior