Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

How would one accomplish a type conversion utility for the Compact Framework 2.0 (.NET 3.5)? I'm trying to implement some bespoke structures which mimic some of the standard .NET Framework classes (for instance, the Padding struct).

I sense that type conversion is supported, given that the Size structure has a compatible type converter. I've looked into the System.ComponentModel.TypeConverter class but it's nothing more than an empty shell.

So the question is, essentially, is there a way to have properties of a class type-converted into the corresponding class or structure? "0, 0, 0, 0" -> Padding class with the associated values?

Thanks in advance.
Posted

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900