C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » C# Syntax »

Difference between IS and AS keyword in C#?


Posted Date: 08 Nov 2008    Resource Type: Code Snippets    Category: C# Syntax
Author: Ashis PatraMember Level: Silver    
Rating: 1 out of 5Points: 1



AS operator:The as operator is similar to a cast but on any conversion failure null is returned as oppose to raising an exception.

IS operator:used to check whether the run-time type of an object is compatible with a given type.



Responses

Author: Damavarapu Jashuva    11 Nov 2008Member Level: Bronze   Points : 0
A clear explanation is done . Its very clean and simple


Author: Damavarapu Jashuva    11 Nov 2008Member Level: Bronze   Points : 0
A clear explanation is done . Its very clean and simple


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
IS and AS operator  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Jagged Array in C#
Previous Resource: How does you get record number from 2 to 6 from a dataset of 10 records?
Return to Discussion Resource Index
Post New Resource
Category: C# Syntax


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use