Give An example of a ctype and directcast.
Answers were Sorted based on User's Feedback
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 |
textbox = CType(obj, TextBox)
textbox = DirectCast(obj, TextBox)
Is This Answer Correct ? | 15 Yes | 8 No |
When should I use .net core?
Resource Files: How to use the resource files, how to know which language to use?
Please explain what is reflection and what is it for?
What is managed code and managed data in .net?
Can you share processes between Windows services?
What do you mean by Driver Script?
Is .net is a language?
What is "common language runtime" (clr) in .net?
Explain about major components of the .NET framework.
Is .net core stable?
What is boxing in .NET?
What is Method Overriding? How to override a function in C#?