Give An example of a ctype and directcast.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain .net framework overview?

602


What is the purpose of IClonable interface in .NET?

614


What is the difference between an abstract class and an interface?

515


Explain the procedure to add assemly to gac to make it shared one?

577


What is .net debug & trace?

631






What is the difference between a namespace and assembly name in .net?

537


What is the use of design pattern?

579


How does cas works?

585


Explain how to redirect tracing to a file?

562


A developer company sends dlls to the client. Some client is not happy current functionality, so request some modification. Developer made some changes and send new dll to all clients. Some client is happy with old version, tell me minimal change to so that neither clients get affected?

524


What is .net code security?

576


What is the root class in .net?

662


How to load the contents of an xml file into an xmldocument object?

610


How to Create and Consume a Web Service?

2677


What are the new features of Framework 1.1 ?

3835