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

What is the native image generator?

600


What are asp.net authentication providers and iis security?

526


Explain different types of html, web and server controls.

559


Tell us what do the following acronyms in .net stand for: il, cil, msil, cli and jit?

515


Explain me what is the difference between a class and an object, and how do these terms relate to each other?

498






What is common type system (cts)?

551


what is dotnet architecture? can anyone explain that.

3605


Tell us the differences between an interface and an abstract class in .net?

554


Explain the difference between the while and for loop. Provide a .net syntax for both loops?

499


Why you want to leave your previous company.

1585


What are the differences between com architecture and.net architecture?

551


Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

513


What does .net stand for?

570


How can I tell if .net 3.5 is installed?

514


What are the different types of remote object creation mode in .net?

572