XmlFormatterOptions Class

Provides options for formatting XML.

public sealed class XmlFormatterOptions : IEquatable<XmlFormatterOptions>
Implements

Constructors

NameDescription
XmlFormatterOptions()

XmlFormatterOptions()

XmlFormatterOptions.cs
public XmlFormatterOptions()

No documentation is available.

Properties

NameDescription
OrderAttributesGets or sets whether to order attributes alphabetically.
WriteIndentedGets or sets whether to write indented XML.

OrderAttributes

XmlFormatterOptions.cs

Gets or sets whether to order attributes alphabetically.

public bool OrderAttributes { get; set; }

Property value

bool

Gets or sets whether to write indented XML.

public bool WriteIndented { get; set; }

Property value

bool

Methods

NameDescription
Equals(XmlFormatterOptions?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(XmlFormatterOptions?)

public bool Equals(XmlFormatterOptions? other)
Parameters
other XmlFormatterOptions?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(XmlFormatterOptions?, XmlFormatterOptions?)
operator !=(XmlFormatterOptions?, XmlFormatterOptions?)

operator ==(XmlFormatterOptions?, XmlFormatterOptions?)

public static bool operator ==(XmlFormatterOptions? left, XmlFormatterOptions? right)

No documentation is available.

operator !=(XmlFormatterOptions?, XmlFormatterOptions?)

public static bool operator !=(XmlFormatterOptions? left, XmlFormatterOptions? right)

No documentation is available.