System.Drawing.Color in Javascript

Hi,

I have a class (let it be called Car) that has a property of type System.Drawing.Color (Call CarColor). I have a utility script function that uses this Car class as a return value that works fine. Then I have another script utility that takes a Car object as a parameter. I would like to change the color of the car in Javascript, but it's hard for me to do this without adding another parameter that takes the color as a string and then translates to the server.

Any ideas on how to set the Color property of the Car object in Javascript and maintain it on the server?

Thank!

+3
source share
1 answer

Source: https://habr.com/ru/post/1770392/


All Articles