Q:

What is the difference between is and as operators in c#?

0

What is the 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 checking 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)

Top 100 C# interview questions and answers 2022

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What are the differences between static, public an... >>
<< How do you inherit a class into other class in C#?...