Hi
I have the code.
[DataContract]
public class Employee
{
[DataMember(EmitDefaultValue = false)]
public string position {get; aet;}
[DataMember(EmitDefaultValue = false)]
public int salary {get; aet;}
[DataMember(EmitDefaultValue = false)]
public int? bonus {get; set;} = null
[DataMember(EmitDefaultValue = false)]
public int targetSalary {get; aet;}
}I can see the null value in the result of bonus
I read this articule, tried to replicate it and it doesn't work: