-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
Description
public class TestMe
{
public string a { get; set; }
public string b { get; set; }
public int? c { get; set; }
public int? d { get; set; }
}
var testMe = new TestMe
{
a = "Test",
c = 0
};
if (useNetJSON == true)
{
vals[j] = NetJSON.NetJSON.Serialize(testMe);
var obj = NetJSON.NetJSON.Deserialize(typeof(TestMe), vals[j]);
testMe = (TestMe)obj;
}
afterwards in the new testMe object c will be null rather than 0.
Reactions are currently unavailable