It may do...... the only thing I have come across in
VB.NET that uses boxing of the primitive data types behind the scenes is when you call one of the generic object methods on a primitive data types and I believe that the toString method is a generic object method.
I think what must happen is that the integer is boxed to an object, then the toString method is called on the object, which produces the string. I dont think this involves unboxing the object though.
One thing to remember about boxing is that if you 'box' and integer into an object, it must be 'unboxed' to the same type (ie, an integer in this case).
Quote:
quote:Originally posted by Utpal
Hi everybody,
Does converting an integer to a string involve boxing?
|