JsonCollectionInfoValues<TCollection> 类

定义

提供有关集合类型的序列化元数据。

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

类型参数

TCollection

集合类型。

继承
JsonCollectionInfoValues<TCollection>

注解

此 API 旨在供 System.Text.Json 源生成器的输出使用,不应直接调用。

构造函数

JsonCollectionInfoValues<TCollection>()

属性

ElementInfo

表示 JsonTypeInfo 元素类型的实例。

KeyInfo

如果字典类型,则 JsonTypeInfo 表示键类型的实例。

NumberHandling

JsonNumberHandling应用于数字集合元素的选项。

ObjectCreator

反序列化时创建集合实例的 A Func<TResult>

SerializeHandler

假设预先确定 JsonSourceGenerationOptionsAttribute 的默认值,优化序列化实现。

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于