|
|
submitted by
crpietschmann
2 months, 16 days ago
winterdom.com — This should've been simple, but it took me a far longer time than I expected to get working correctly. Getting the basic design time work done wasn't too much of a problem; since the property type was an array and not a custom collection, the default editors did the right thing and offered a good design time experience out of the box. However, you still need to provide the designers and ASP.NET a way to store the property contents as an string, so that you can use markup to specify the value of the property. Time to write a TypeConverter! I went ahead and wrote a simple TypeConverter that would take a string and return an array of structs based on its contents, or take an array and return a string based on the values in it. Nothing fancy. read more...
|
|
tags:
Struct, TypeConverter, Tips | tag it
Everyones tags: | Your tags: | |
|
|
|