How does CLR allocates memory in these 2 cases:
Are they both allocated in static memory area?
static class A
{
//Some methods
}
and
class A
{
//Some methods
}
class B
{
static A inst = new A();
//Some methods
}
For the below statement, will the compiler
static A inst = new A();
allocate A in heap and assign it to static reference inst reference? Or it will create a static instance in High Frequency heap?