Skip to main content

Definition

Assembly: CloudNimble.XmlEssentials.dll Namespace: CloudNimble.Text.Xml.Serialization

Syntax

Summary

Defines the core behavior of an item of mixed content and provides a base for XmlMixedText and XmlMixedElement.

Usage

XmlMixedContentItem is the abstract base of the two kinds of item in a mixed-content list: XmlMixedText for a run of text and XmlMixedElement for a child element. Use it as the element type of the list that you mark with [XmlMixed], and use pattern matching to tell the items apart.
The loop prints the following:
The class has no members of its own. The serializer writes only XmlMixedText and XmlMixedElement items, and skips an item of any other derived type. View the complete sample on GitHub

Constructors

.ctor Inherited

Inherited from object

Syntax

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?
  • CloudNimble.Text.Xml.Serialization.XmlMixedAttribute
  • CloudNimble.Text.Xml.Serialization.XmlMixedText
  • CloudNimble.Text.Xml.Serialization.XmlMixedElement