1

If the only thing that ClassA does is to subscribe to events from ClassB -which is a long living class- like this

static void Main()
{
   new A(B);
}

class ClassA
{
  public ClassA(ClassB b)
  {
     // subscribe to events of ClassB
  }
}

Does this make ClassA garbage collected?

anouar.bagari
  • 2,084
  • 19
  • 30

0 Answers0