> ## 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.

# XmlPropertyInfoValues

> Provides serialization metadata about a property or field. This class cannot be inherited.

## Definition

**Assembly:** CloudNimble.XmlEssentials.dll

**Namespace:** CloudNimble.Text.Xml.Serialization

**Inheritance:** CloudNimble.Text.Xml.Serialization.XmlPropertyInfoValues

## Syntax

```csharp theme={"dark"}
CloudNimble.Text.Xml.Serialization.XmlPropertyInfoValues<TValue>
```

## Summary

Provides serialization metadata about a property or field. This class cannot be inherited.

## Remarks

Source-generated contexts create instances of this class. It is analogous to
`JsonPropertyInfoValues<T>` in `System.Text.Json`. The names, the ignore conditions and the
mapping of the member are not given here: the serializer works them out from [XmlPropertyInfoValues\`1.Attributes](https://easyaf.nimbleapps.cloud/xmlessentials/api-reference/CloudNimble/Text/Xml/Serialization/XmlPropertyInfoValues.md#attributes) and the
options, exactly as it does for a member it finds through reflection.

## Type Parameters

* `TValue` - The type of the property or field.

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={"dark"}
public XmlPropertyInfoValues()
```

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `CloudNimble.Text.Xml.Serialization.XmlPropertyInfoValues`

Initializes a new instance of the [XmlPropertyInfoValues](https://easyaf.nimbleapps.cloud/xmlessentials/api-reference/CloudNimble/Text/Xml/Serialization/XmlPropertyInfoValues.md) class.

#### Syntax

```csharp theme={"dark"}
private protected XmlPropertyInfoValues()
```

#### Remarks

Only `XmlPropertyInfoValues`1\` derives from this class: a class outside this library cannot.

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### &#x20;Attributes

Gets or initializes the XmlEssentials attributes on the member.

#### Syntax

```csharp theme={"dark"}
public System.Attribute[] Attributes { get; init; }
```

#### Property Value

Type: `System.Attribute[]?`
The attributes, as instances constructed with the arguments the member declares them with; or
[`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the member has none.

#### Remarks

The serializer reads these as it reads the attributes it finds through reflection.

### &#x20;DeclaringType

Gets or initializes the type that declares the member.

#### Syntax

```csharp theme={"dark"}
public System.Type DeclaringType { get; init; }
```

#### Property Value

Type: `System.Type`
The declaring type.

### &#x20;Getter

Gets or initializes a method that gets the value of the member.

#### Syntax

```csharp theme={"dark"}
public System.Func<object, TValue> Getter { get; init; }
```

#### Property Value

Type: `System.Func<object, TValue>?`
A method that takes the object, boxed when it is a value type, and returns the value of the member; or
[`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the member cannot be read.

### &#x20;IsGetNullable

Gets or initializes a value that indicates whether the member may return [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null).

#### Syntax

```csharp theme={"dark"}
public bool IsGetNullable { get; init; }
```

#### Property Value

Type: `bool`
[`true`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the nullable annotations of the member allow it to return
[`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null), or say nothing; otherwise, [`false`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

#### Remarks

The value is read when [XmlSerializerOptions.RespectNullableAnnotations](https://easyaf.nimbleapps.cloud/xmlessentials/api-reference/CloudNimble/Text/Xml/XmlSerializerOptions.md#respectnullableannotations) is [`true`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

### &#x20;IsProperty

Gets or initializes a value that indicates whether the member is a property or a field.

#### Syntax

```csharp theme={"dark"}
public bool IsProperty { get; init; }
```

#### Property Value

Type: `bool`
[`true`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) for a property; [`false`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) for a field.

### &#x20;IsPublic

Gets or initializes a value that indicates whether the member is public.

#### Syntax

```csharp theme={"dark"}
public bool IsPublic { get; init; }
```

#### Property Value

Type: `bool`
[`true`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the field, or the get accessor of the property, is public; otherwise,
[`false`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). A member that is not public is serialized only when it has
[XmlIncludeAttribute](https://easyaf.nimbleapps.cloud/xmlessentials/api-reference/CloudNimble/Text/Xml/Serialization/XmlIncludeAttribute.md).

### &#x20;IsRequired

Gets or initializes a value that indicates whether the member is declared with the
`required` modifier.

#### Syntax

```csharp theme={"dark"}
public bool IsRequired { get; init; }
```

#### Property Value

Type: `bool`
[`true`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the member has the `required` modifier; otherwise,
[`false`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

### &#x20;IsSetNullable

Gets or initializes a value that indicates whether the member accepts [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null).

#### Syntax

```csharp theme={"dark"}
public bool IsSetNullable { get; init; }
```

#### Property Value

Type: `bool`
[`true`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the nullable annotations of the member allow it to be set to
[`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null), or say nothing; otherwise, [`false`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

#### Remarks

The value is read when [XmlSerializerOptions.RespectNullableAnnotations](https://easyaf.nimbleapps.cloud/xmlessentials/api-reference/CloudNimble/Text/Xml/XmlSerializerOptions.md#respectnullableannotations) is [`true`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

### &#x20;IsVirtual

Gets or initializes a value that indicates whether the member is a property with a virtual accessor.

#### Syntax

```csharp theme={"dark"}
public bool IsVirtual { get; init; }
```

#### Property Value

Type: `bool`
[`true`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the property is virtual, abstract, an override, or implements an interface
member; otherwise, [`false`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). The default is [`false`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

#### Remarks

A property that overrides another is the same member, so only the most derived one is serialized. When
that one is ignored, the property it overrides is not serialized either.

### &#x20;PropertyName

Gets or initializes the name of the property or field as it is declared.

#### Syntax

```csharp theme={"dark"}
public string PropertyName { get; init; }
```

#### Property Value

Type: `string`
The C# name of the member.

### &#x20;Setter

Gets or initializes a method that sets the value of the member.

#### Syntax

```csharp theme={"dark"}
public System.Action<object, TValue> Setter { get; init; }
```

#### Property Value

Type: `System.Action<object, TValue>?`
A method that takes the object, boxed when it is a value type, and the value to set; or
[`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the member cannot be set after the object is created.

## Methods

### &#x20;CreateFacts Inherited Abstract

> [!NOTE]
>
> Inherited from `CloudNimble.Text.Xml.Serialization.XmlPropertyInfoValues`

Turns the values into the facts the object binder works from.

#### Syntax

```csharp theme={"dark"}
internal abstract CloudNimble.Text.Xml.Serialization.XmlMemberFacts CreateFacts()
```

#### Returns

Type: `CloudNimble.Text.Xml.Serialization.XmlMemberFacts`
The facts of the member.

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


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