What is an alternative of Convert.ToString() in VB.Net?

 Posted by vishalneeraj-24503 on 1/23/2014 | Category: VB.NET Interview questions | Views: 1159 | Points: 40
Answer:

Use CSTR in-build vb.net function which works same as Convert.ToString().

For Example:

string value = CSTR(ds.Tables(0).Rows(0)("Name"));

string value = Convert.ToString(ds.Tables(0).Rows(0)("Name"));


Both expressions are same.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response