Mehdi Gholam
Mehdi Gholam
I've cross compiled an app with embedded sqlite with golang/zig for pi zero w, android termux, linux x64, windows 386 and x64, all from either linux, windows or even android...
What do you get?
The following works: ```c# public class ControllerAsset //: AutoGeneratedNetworkDevice { public String Firmware { set; get; } public int? GroupID { set; get; } } [Test] public static void nullabletest()...
What is the c# code for the type?
Try using `JSONParameters.ParametricConstructorOverride = true`
Yes, properties will not be "initialized" with that workaround since the CLR just allocates the memory, this can be a problem if there is complex initialization logic, but if you...
You could also serialize a surrogate class, instead of the original.
How about something like this: ```c# var o = JSON.ToObject(str, new JSONParameters { CreateParameterConstructorObject = (t) => { if (t == typeof(NullTestClass)) return new NullTestClass("a", 42); else return null; }...
> I still need to map the parameter to the field and extract the data from the json or am I missing something? No the code just handles the object...
From what I understand is that your problem is that there are some classes with "strange" initialization parameters that is done in the constructor, which setting the properties afterwards does...