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 makes .net core cross platform?

0 Answers  


What is immutability?

0 Answers  


why you wouldn't want to write into it even if you could

0 Answers  


What is 3 tier architecture?

0 Answers  


What are the improvements made in cas in .net 4.0?

0 Answers  






Explain different types of html, web and server controls.

0 Answers  


where are connection strings stored?

1 Answers   Manhattan,


What is the use of Treeview control?

0 Answers   CGI,


When developing a Windows service for .NET, which namespace do you typically look in for required classes?

1 Answers  


What are server controls?

1 Answers   Avanade, Wipro,


Difference between Debugging and tracing in .net

1 Answers  


Tell us what is a sealed class?

0 Answers  


Categories