Click here to Skip to main content
15,909,898 members

Comments by Rob Philpott (Top 200 by date)

Rob Philpott 21-May-24 12:49pm View    
Task.Delay takes the delay in milliseconds by the way, not seconds.
Rob Philpott 21-May-24 12:24pm View    
Could it be that you are posting a ThingList which contains an array of things, but the controller is expecting an array of things, not a thinglist?
Rob Philpott 3-May-24 8:22am View    
Protocol Buffers?
Rob Philpott 3-May-24 7:29am View    
I've been doing a bit of this of late actually (JSON=>XML=>JSON). XML was always a hideous thing from the beginning with multiple ways to vaguely express the same thing and a single datatype of 'string'. I see it now more as an indication of the age of a system - it uses XML, it's old, it probably uses WinForms too. Mind you JSON has its faults (again very narrow type system - why oh why no dates?).

I don't mind WinForms actually. It's not pretty by modern standards but it's simple and it works. Sorry, I think I'm waffling. :)
Rob Philpott 21-Dec-23 10:16am View    
Yeah, I don't know actually - I don't think I've ever attempted to create a deep clone that can cope with any type, normally you have some insight about what you're cloning, members might be decorated for serialisation etc. Maybe some reflective approach might work, or some solution using expression trees for maximum performance. I found this - might be worth a go: https://stackoverflow.com/questions/129389/how-do-you-do-a-deep-copy-of-an-object-in-net