Would the instance reference parameters passed into the static methods get garbage collected?

Posted by 123Developer on Stack Overflow See other posts from Stack Overflow or by 123Developer
Published on 2010-04-21T12:58:40Z Indexed on 2010/04/21 13:03 UTC
Read the original article Hit count: 171

Filed under:
|
|

I know that the static objects in .Net managed world are loaded in Loader Heap which is never going to be garbage collected.

What happens to the instance reference parameters passed to a static methods. Are they get garbage collected once the static function executed completely Or they are going to live forever as those instance reference variables are once passed to static method?

I am really confused this evening; Please guide me.

Thanks and regards

123Developer.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET