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

When should I use .net core?

0 Answers  


Resource Files: How to use the resource files, how to know which language to use?

1 Answers  


Please explain what is reflection and what is it for?

0 Answers  


What is managed code and managed data in .net?

0 Answers  


Can you share processes between Windows services?

2 Answers  






What do you mean by Driver Script?

0 Answers   TCS,


Is .net is a language?

0 Answers  


What is "common language runtime" (clr) in .net?

0 Answers  


Explain about major components of the .NET framework.

1 Answers  


Is .net core stable?

0 Answers  


What is boxing in .NET?

1 Answers  


What is Method Overriding? How to override a function in C#?

1 Answers  


Categories