Operators
Difference between 'as' and 'is' operator in C# ?
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.
Satyapriya NayakPosted Jan 9, 2013, 6:40 AM
http://msdn.microsoft.com/en-us/library/cscsdfbt%28v=vs.71%29.aspx
http://www.c-sharpcorner.com/uploadfile/mahesh/as-operator-in-C-Sharp/
http://msdn.microsoft.com/en-us/library/scekt9xw%28v=vs.71%29.aspx
http://www.c-sharpcorner.com/uploadfile/mahesh/is-operator-in-C-Sharp/
Thanks
Santhosh Kumar JayaramanPosted Jan 9, 2013, 5:47 AM
The 'As' operator is similar to a cast, but returns null instead of an exception if it fails.
The 'Is' operator is used to check if one object is compatible with a certain type. It's usually used in If statements.