Hi, I'm using newtonjson with a rather obscure feature for Updating
public class UpdateDTO
{
public string? TestString = null;
public bool TestStringSpecified; // true if specified in json
}
Ideally,the mapping generated would be like this
static void Update (UpdateDTO u, Target target)
{
if (u.TestStringSpecified) target.TestString = u.TestString;
}
I'm wondering if mapping generator can generate this kind of mapping code, or is there a better way?
Hi, I'm using newtonjson with a rather obscure feature for Updating
Ideally,the mapping generated would be like this
I'm wondering if mapping generator can generate this kind of mapping code, or is there a better way?