What is difference between “is” and “as” operators in c#?
“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.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
“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