struct ValueTypeObject
{
private int x;
}
class RefTypeObject
{
private int x;
}
void main()
{
var a = new Dictionary<int, ValueTypeObject>();
var b = new Dictionary<int, RefTypeObject>();
}
Is there any benefit in using a over b?
For example, will ValueTypeObject in "a" get boxed/unboxed automatically or is there no boxing?