I want to deserialize a json string to my object without create new instance of my object because I loaded my object when my app is started and I just want update properties of my class and dont want to create new instance when I using json deserialization.
Fo example normal json deserialer work fine in this example and this create new instance of object:
var obj = JsonConvert.DeserializeObject<MyData>("json string to deserialize");
In my case I have an instance of my object and I want to deserialize and map properties to my object:
MyData data = new MyData() { Age = 27, Name = "Ali" };
//this is my case what I want:
JsonConvert.DeserializeObject("json string to deserialize and mapp", ref data);
//or:
JsonConvert.DeserializeObject("json string to deserialize and mapp", data);