Give An example of a ctype and directcast.

Answers were Sorted based on User's Feedback



Give An example of a ctype and directcast...

Answer / sajid

Dim t As String = "5"
Dim s As Integer = CType(t, Integer)

Dim t As String = "5"
Dim w As String = DirectCast(t, String)

Is This Answer Correct ?    19 Yes 3 No

Give An example of a ctype and directcast...

Answer / narayan sahu(netx)

textbox = CType(obj, TextBox)
textbox = DirectCast(obj, TextBox)

Is This Answer Correct ?    15 Yes 8 No

Post New Answer

More Dot Net General Interview Questions

What is the difference between vb.net and vc#.net?

0 Answers  


Explain .NET architecture?

0 Answers   TCS,


What are virtual destructures?

0 Answers  


syntax for binding the data from database

1 Answers   Satyam,


What is a strategy pattern? Implement it.

1 Answers  


What are the features of dot net?

0 Answers  


Please explain is the jit an interpreter?

0 Answers  


How different are interface and abstract class in .Net?

2 Answers  


what is GAC?

1 Answers   Manhattan,


What is .net and .net framework?

0 Answers  


Hi, Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Got Exception in "try" block. Which "catch" throws exception and Why??? Please provide the answer in detail.. Thanks for the help!!!

3 Answers   3i Infotech,


What is the model role in Mvc architecture?

3 Answers  


Categories