Click here to Skip to main content
15,867,568 members
Articles / Programming Languages / C#

Encapsulating value types into reference types

Rate me:
Please Sign up or sign in to vote.
1.25/5 (7 votes)
27 Sep 2004CPOL2 min read 31.1K   174   10  
Value Types can not be referenced (boxing is another thing) as fields of objects, this prevents you fetching FieldInfo of the value type instance. Here is the 'worst' solution I'v found until now.

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
Software Developer (Senior) NOC
China China
Please view my resume at

http://www.rentacoder.com/RentACoder/SoftwareCoders/showBioInfo.asp?lngAuthorId=1309793

Comments and Discussions