一个静态int变量需要多少字节?

Beh*_*ooz 0 .net static-variables

class a
{
int variable;//4 bytes
}

class a
{
static int variable;//? bytes
}
Run Code Online (Sandbox Code Playgroud)

Tim*_*res 5

int变量也占用4个字节,与类不在同一个地方,每个AppDomain占用4个字节,而不是每个类的实例.