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 an Interface? Have you ever developed an Interface.

5 Answers   Deloitte,


Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?

0 Answers  


How to create properties and methods using controls?

0 Answers   CGI,


What is the Difference between a sub and a function?

9 Answers   Wipro,


Which namespace is the base class for .net Class library?

1 Answers  






What is an exe and a dll?

0 Answers  


Do you know what are three common acronyms used in .net, and what do they stand for?

0 Answers  


What is the difference between imperative and interrogative code?

0 Answers  


Please explain what is the difference between constants and read-only variables?

0 Answers  


What are the namespace available in .net?

0 Answers  


What is a delegate in .NET?

1 Answers  


Write an StoredProcedure to get the values of a column within a date range.

1 Answers   Deloitte,


Categories