Skip to main content

Definition

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

Syntax

Summary

Provides information about a constructor parameter that is required for serialization and deserialization. This class cannot be inherited.

Remarks

Source-generated contexts create instances of this class. It is analogous to JsonParameterInfoValues in System.Text.Json.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

DefaultValue

Gets or initializes the default value of the parameter.

Syntax

Property Value

Type: object? The value the parameter takes when the document has none for it. It is used only when XmlParameterInfoValues.HasDefaultValue is true.

HasDefaultValue

Gets or initializes a value that specifies whether a default value was specified for the parameter.

Syntax

Property Value

Type: bool true if the parameter has a default value; otherwise, false.

IsNullable

Gets or initializes a value that indicates whether the parameter accepts null.

Syntax

Property Value

Type: bool true if the nullable annotations of the parameter allow null, or say nothing; otherwise, false.

Remarks

The value is read when XmlSerializerOptions.RespectNullableAnnotations is true.

Name

Gets or initializes the name of the parameter.

Syntax

Property Value

Type: string The name, which is matched to a member of the type without regard to case.

ParameterType

Gets or initializes the type of the parameter.

Syntax

Property Value

Type: System.Type The type of the parameter.

Position

Gets or initializes the zero-based position of the parameter in the formal parameter list.

Syntax

Property Value

Type: int The position. The arguments are passed to the object creator in this order.

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?