![]() Related Questions Yes. Set all references to null and then call System.GC.Collect().If you need to have some objects destructed, and System.GC.Collect() doesn't seem to be doing it for you, you can force finalizers Latest Answer : GC.Collect();It is recomended that you should not forcefully call the GC. GC does it in the optimal way, since it knows the inner details like which object actually created inner objects.But some case you may need to force GC to free the scarce memory ... C# has finalizers (similar to destructors except that the runtime doesn't guarantee they'll be called), and they are specified as follows: class C{~C(){// your code}public static void Main() Latest Answer : If you are not declare any Main() method in your program then compiler will give you this errors. Basically Main() is the entry point for compiler for execution. One more thing C# ia a case sensitive language so be carefull about the spelling of Main() ... In a garbage collected environment, it's impossible to get true determinism. However, a design pattern that we recommend is implementing IDisposable on any class that contains a critical resource. .NET FRAMEWORK1. What is .NET Framework?The .NET Framework has two main components: the common language runtime and the .NET Framework class library.You can think of the runtime as an agent that manages Latest Answer : The .NET framework is a platform over which multiple languages are running.The 2 main components are
1. FRAMEWORK CLASS LIBRARY2. COMMON LANGUAGE RUNTIMEIt's features like CTS provide Cross Language Interoprabality.The CLR is the main Governing body ... Read Answers (1) | Asked by : Prasanna Muthukrishnan Skill/Topic: IntermediateA) Language InteroperabilityB) Garbage CollectionC) Multiple Inheritance Latest Answer : by the interface we can go for the multiplle inhertiance also so my answer ids corrget for tHAT ... Skill/Topic: AdvancedA) Managed CodeB) Smart CachingC) Garbage Collection Latest Answer : C) Garbage Collection ... Skill/Topic: AdvancedA) Copies the IL code to the heapB) Destroys the pointersC) is responsible for automatic memory management Latest Answer : ans:C) is responsible for automatic memory management ... Skill/Topic: AdvancedA) TrueB) False Latest Answer : true, we can call GC using System.GC.Collect() method. ... Skill/Topic: AdvancedA) ManifestB) Garbage CollectorC) Heap Latest Answer : Assembly Manifest ... Skill/Topic: AdvancedA) Garbage.CollectB) System.GC.Collect()C) Gc.Clea.Up() Latest Answer : System.GC.Collect() ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||