Is there a way to force garbage collection?
Answer / Amit Kumar Dohare
In C#, you should never manually force garbage collection as the .NET runtime has its own automatic garbage collector. However, you can encourage the garbage collector to run by allocating large amounts of memory and then allowing the application to idle.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are delegates in C#?
Name the two classes are required for implementing a windows service?
What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?
What is a cs file?
what is the difference between convert.tostring() and tostring() functions ?
Can mvc be used for desktop applications?
Explain the three services model (three-tier application).
What is difference between private and static constructor?
How to achieve polymorphism in c#?
Is int a class in c#?
What is a destructor in c#?
What are destructors in C#?
2 Answers TryTechnicals Pvt Ltd,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)