What is IS and AS keywords in c#???
What is IS and AS keywords in c#??? Can anyone define i am a beginner i have lots of confusion about this topic ,please explain ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeesh MenothPosted Jul 28, 2015, 2:31 PM
Manoj BhoirPosted Jul 28, 2015, 1:24 PM
IS
The
isoperator checks if an object can be cast to a specific type.Example:
AS
The
asoperator attempts to cast an object to a specific type, and returns null if it fails.Example: