Click here to Skip to main content
15,893,814 members
Articles / Programming Languages / C#

Boxing a value type in .NET to make it a reference type

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
30 Sep 2011CPOL 14.6K   2  
How to wrap a value type so it can be used in positions where a reference type is required
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
United Kingdom United Kingdom
I'm a recent graduate (MSci) from the University of Cambridge, no longer studying Geology. Programming is a hobby so I get to write all the cool things and not all the boring things Smile | :) . However I now have a job in which I have to do a bit of work with a computer too.

Comments and Discussions