Click here to Skip to main content
11,630,144 members (77,672 online)
Click here to Skip to main content

Encapsulating value types into reference types

, 27 Sep 2004 CPOL 28.2K 166 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.


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.


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


About the Author

Software Developer (Senior) NOC
China China
Please view my resume at

| | Privacy | Terms of Use | Mobile
Web03 | 2.8.150723.1 | Last Updated 27 Sep 2004
Article Copyright 2004 by yilin_yang
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid