M
mac
Assume you have a textbox named "displayValue"
What is the difference (if any) between these two approaches:
1.)
float var;
var = 0.42F;
displayValue.Text = var.ToString
2.)
float var;
var = 0.42F;
displayValue.Text = Convert.ToString(var);
Is one way generally preferred over the other?
Thanks,
Mac
What is the difference (if any) between these two approaches:
1.)
float var;
var = 0.42F;
displayValue.Text = var.ToString
2.)
float var;
var = 0.42F;
displayValue.Text = Convert.ToString(var);
Is one way generally preferred over the other?
Thanks,
Mac