Hi,
I have a class like:
public ClassA
{
int[] vals1;
int[] vals2;
}
Many instances of ClassA are created and stored in a Hashtable.
Does the following statement cause any boxing/unboxing to be
undertaken (z is an instance of ClassA):
z.vals[0]=z.vals[1]+z.vals[2];
Also:
int i = z.Vals[0]; // This would cause unboxing?
double d = (double)z.Vals[0]; // Is this the same as the previous
statement or would it incur extra penalties casting the value to a
double?
thanks