Click here to Skip to main content
15,891,253 members
Articles / General Programming

Using Prefix vs As casts in C#

Rate me:
Please Sign up or sign in to vote.
1.00/5 (1 vote)
6 May 2010CPOL1 min read 9.6K   1  
Yesterday during code review, one suggestion that came up from the reviewer was to always use Prefix-casting instead of As-casting in our code and that brings out the question why? The answer lies in choosing a tradeoff between reliability and performance. The primary difference between...
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead Microsoft India R&D Pvt. Ltd. Hyderabad
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions