If I have something like :
public static class StaticClass
{
public static int x;
public static void Do(int y)
{
x = y;
}
}
You can't instantiate StaticClass
, so when will the garbage collector take care of it ?
Will it remain in memory for the entire lifetime of the performing executing application ?