语言

JsonCollectionInfoValues<TCollection>.ObjectCreator 属性

定义

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

public:
 property Func<TCollection> ^ ObjectCreator { Func<TCollection> ^ get(); void set(Func<TCollection> ^ value); };
public Func<TCollection>? ObjectCreator { get; init; }
member this.ObjectCreator : Func<'Collection> with get, set
Public Property ObjectCreator As Func(Of TCollection)

属性值

Func<TCollection>

注解

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

适用于