What is difference between "as" and "is" keyword?

Answer Posted / mohit

as operator use for casting
where is operator is use for comparision.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can extension methods access private members?

667


How do I get deterministic finalization in c#?

787


What is the file extension for c#?

685


What does args mean in c#?

660


How many types of collections are there in c#?

643


Explain acid rule of thumb for transactions in c#.

687


What's the difference between class and object?

662


How many types of polymorphism are there?

696


What is whitespace in c#?

675


What’s a strong name?

687


How does c# generics and c++ templates compare?

650


What is the use of parse in c#?

625


what is IDisposal interface

892


Is datetime a value type in c#?

651


In dynamic link library, which api is used for load library?

705