> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.nimbleapps.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# XmlMemberOrder

> Specifies where the fields of a type come among its members, when [XmlSerializerOptions.IncludeFields](/xmlessentials/api-reference/CloudNimble/Text/Xml/XmlSerializerOptio...

## Definition

**Assembly:** CloudNimble.XmlEssentials.dll

**Namespace:** CloudNimble.Text.Xml

**Inheritance:** System.Enum

## Syntax

```csharp theme={"dark"}
CloudNimble.Text.Xml.XmlMemberOrder
```

## Summary

Specifies where the fields of a type come among its members, when
[XmlSerializerOptions.IncludeFields](https://easyaf.nimbleapps.cloud/api-reference/CloudNimble/Text/Xml/XmlSerializerOptions#includefields) includes them.

## Remarks

Under either value, the members of a base class come before those of a class derived from it, the members
of one kind keep the order they are declared in, and an explicit order on a member takes precedence.

## Values

| Name | Value | Description |
| - | - | - |
| `PropertiesFirst` | 0 | The properties of a class, then its fields. This is the default. |
| `FieldsFirst` | 1 | The fields of a class, then its properties. This is the order |
| `System.Xml.Serialization.XmlSerializer` writes. | | |

## Related APIs

* System.IComparable
* System.ISpanFormattable
* System.IFormattable
* System.IConvertible


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.