Q:

What is difference between “is” and “as” operators in c#?

0

What is difference between “is” and “as” operators in c#?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

“is” operator is used to check the compatibility of an object with a given type, and it returns the result as Boolean.

“as” operator is used for casting of an object to a type or a class.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C# Interview Questions and Answers,You Need To Know

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Why can’t you specify the accessibility modifier... >>
<< Explain some points related to the constructor?...