I am working on a Web Api that returns JSON data. How do I return a converted Color from hex code as a string or whatever type that can be wired up in the front end to represent a color?, in other words, how can I return the color White from #ffffff
hex code and assign it to a Model property so it can be returned as part of a JSON response?
Asked
Active
Viewed 68 times
1

Alexei Levenkov
- 98,904
- 14
- 127
- 179

Papi
- 555
- 13
- 40
-
1What framework are you using? WinForm/WPF? – keyboardP Nov 30 '14 at 20:53
-
1For WPF: http://stackoverflow.com/q/2109756/8446 – Roger Lipscombe Nov 30 '14 at 20:55
-
2For Winforms: http://stackoverflow.com/q/12155811/8446 (and those are already both duplicates). – Roger Lipscombe Nov 30 '14 at 20:56