G
Guest
I am curious about the following scenario concerning C# classes A and B
class
A(
void method1(
method2()
method3()
void method2(
b = new B()
void method3(
b = new B()
B b
Is the first instance of B created in the call to method2() garbage collected or does it LEAK
Thanks
Eagle (C++ guy learning C#)
class
A(
void method1(
method2()
method3()
void method2(
b = new B()
void method3(
b = new B()
B b
Is the first instance of B created in the call to method2() garbage collected or does it LEAK
Thanks
Eagle (C++ guy learning C#)