I\'m aware that boxing and unboxing are relatively expensive in terms of performance. What I\'m wondering is:
Does passing a value type to a method\'s out
out
There is no boxing; what the out parameter does is specifies that number must be assigned to within the TryParse method. Irrespective of this, it is still treated as an int, not an object.
TryParse
int
object