Skip to main content

Definition

Assembly: CloudNimble.XmlEssentials.dll Namespace: CloudNimble.Text.Xml.Serialization Inheritance: System.Enum

Syntax

Summary

Determines how XmlSerializer handles a member that already holds a value when it is deserialized.

Usage

XmlObjectCreationHandling says what happens to the value a member already holds when the member is read. Use it in two places: [XmlObjectCreationHandling], for one member or one type, and XmlSerializerOptions.PreferredObjectCreationHandling, for every member. It is the counterpart of JsonObjectCreationHandling, with the same values and rules.
See Populate a collection that already holds a value for what can and can’t be populated.

Remarks

The values and their meaning are those of System.Text.Json.Serialization.JsonObjectCreationHandling.

Values

  • System.IComparable
  • System.ISpanFormattable
  • System.IFormattable
  • System.IConvertible