How to cast String to any datatype?

 Posted by deccansoft on 9/15/2010 | Category: C# Interview questions | Views: 1129


Dim str as string

Dim n as Integer

str="65"

n=str --> Invalid

str=n --> Invalid

n=CInt(str) --> Valid

n=Integer.parse(str)--> Valid


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response