JsonCollectionInfoValues<TCollection>.ObjectCreator 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
反序列化时要创建集合的实例的 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 源生成器的输出使用,不应直接调用。