Possible Bug: XXXSpecified is not set=true when setting related property

Nov 4, 2009 at 4:22 PM

For properties that are primitives, we see:



  private bool xyzSpecified = false;

  private int xyzField;

  public int Xyz { get...
    set{ xyzField = value; }



I'd expect setting the value to also set the bool = true..

But it's still largely useless because we cannot return a null from the property? Should there be another property that is hidden in the IDE, but returns a null string for the XmlSerializer to use?