The black arts of custom Type conversion in c#

added by wiredone
3/29/2010 7:30:01 AM

9 Kicks, 750 Views

One of the little used features of c#, is user written implicit and explicit type conversion. Put simply: sometimes you have a object (custom or built-in .Net framework) and want to convert it to another type of object. While you can easily write left to right style code to accomplish this every time, there is a lot cleaner way of doing this by empowering your objects to cast themselves as another type.


0 comments