What is the difference between directcast and ctype?

Answer Posted / debjit mondal(9960119198)

Direct Cast is used for Casting type as well as ref. Ctype
is used only for Type Casting,That is why it is faster.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are generations and how are they used by the garbage collector?

513


Explain the process of inheriting a class into another class?

487


Can we override static class in c#?

477


Write the syntax for catching an exception in c#?

489


What is an object pool in .net?

652






Can a method return multiple values in c#?

447


If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?

561


What is an assembly in dotnet?

544


What is a verbatim string literal and why do we use it?

473


Is c and c# the same?

496


How do you prevent a method from being overridden in c#?

455


State the top.NET class that everything is derived from?

516


What is dependency injection in simple words?

503


What is sqldatareader c#?

485


Why do we override in c#?

490