Dynamic type conversion in the nullable world(blog.activa.be)
submitted by
activa(2340) 4 years, 10 months ago
We all know the Convert.ChangeType() for changing a value from one (unknown) type to another (unknown) type at runtime, but this method doesn't handle nullables and enums very well.
What may seem a simple task isn't that simple after all. You have to differentiate nullables, value types and enums.
|category: C#
|Views: 48
tags:
C# .net2.0 .Net another
Everyones tags:
Your Tags: