The NewStrings method currently directly assigns each element to a string element in the resulting array. This makes sense since it is expected that only strings are passed in the ParamArray. Unfortunately, if values are passed in that cannot be converted to a string by VB a Type Mismatch error is raised. It seems it would be more beneficial to convert each non-string element using VBCorLib default method of Object.ToString for converting values to a string representation.
The
NewStrings
method currently directly assigns each element to a string element in the resulting array. This makes sense since it is expected that only strings are passed in theParamArray
. Unfortunately, if values are passed in that cannot be converted to a string by VB a Type Mismatch error is raised. It seems it would be more beneficial to convert each non-string element using VBCorLib default method ofObject.ToString
for converting values to a string representation.