when i try to deserialize the appointment, the color property is lost.
Possible solutions?
Thanks
ScheduleAppointment clientMeeting = new ScheduleAppointment();
DateTime currentDate = DateTime.Now.AddDays(1);
DateTime startTime = new DateTime(currentDate.Year, currentDate.Month, currentDate.Day, 10, 0, 0);
DateTime endTime = new DateTime(currentDate.Year, currentDate.Month, currentDate.Day, 12, 0, 0);
clientMeeting.StartTime = startTime;
clientMeeting.EndTime = endTime;
clientMeeting.Color = Color.Blue;
clientMeeting.Subject = "ClientMeeting";
ScheduleAppointment test = JsonConvert.DeserializeObject<ScheduleAppointment>(JsonConvert.SerializeObject(clientMeeting));