編輯

共用方式為


JsonCollectionInfoValues<TCollection> Class

Definition

Provides serialization metadata about a collection type.

generic <typename TCollection>
public ref class JsonCollectionInfoValues sealed
public sealed class JsonCollectionInfoValues<TCollection>
type JsonCollectionInfoValues<'Collection> = class
Public NotInheritable Class JsonCollectionInfoValues(Of TCollection)

Type Parameters

TCollection

The collection type.

Inheritance
JsonCollectionInfoValues<TCollection>

Remarks

This API is intended for use by the output of the System.Text.Json source generator and should not be called directly.

Constructors

JsonCollectionInfoValues<TCollection>()

Properties

ElementInfo

A JsonTypeInfo instance representing the element type.

KeyInfo

If a dictionary type, the JsonTypeInfo instance representing the key type.

NumberHandling

The JsonNumberHandling option to apply to number collection elements.

ObjectCreator

A Func<TResult> to create an instance of the collection when deserializing.

SerializeHandler

An optimized serialization implementation assuming pre-determined JsonSourceGenerationOptionsAttribute defaults.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to