Gets or sets a value that indicates whether the XmlSerializer must serialize a member that has the xsi:null attribute set to "1".
Assembly: System.Xml (in System.Xml.dll)
The XML schema specification for structures allows an XML document to explicitly signal that an element's content is missing. Such an element contains the attribute xsi:null set to "1". For more information, see the World Wide Web Consortium (www.w3.org) specification named "XML Schema Part 1: Structures".
If the property is set to true, the xsi:null attribute is generated for class members that have been set to null. For example, if you set a field named MyStringArray to null, the XmlSerializer generates the following XML code.
<MyStringArray xsi:null = "1" />
If the IsNullable property is false, no XML element is generated.
You cannot apply the IsNullable property to a member typed as a value type because a value type cannot contain null.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.