Give An example of a ctype and directcast.

Answer Posted / narayan sahu(netx)

textbox = CType(obj, TextBox)
textbox = DirectCast(obj, TextBox)

Is This Answer Correct ?    15 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is .net a programming language?

751


Can a try block have nested try blocks?

785


What's the use of system.diagnostics.process class in .net?

804


Explain webfarm vs webgardens in .net?

822


Do you know what is .net standard?

824


Elements of CAS

1946


How to create multiple inheritance in c#, with example?

779


Difference between user groups and code groups

2140


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

719


How many types of transactions are there in com + .net ?

783


What is the difference between a debug and release build?

803


Is .net 4.8 backwards compatible?

744


what is dotnet architecture? can anyone explain that.

3910


What is the use com component in .net?

777


Tell us what is a variable of implicit type and what is its scope?

785