JsonObjectInfoValues<T>.ObjectCreator 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定機制,以在還原序列化期間使用無參數建構函式建立類別或結構的實例。
public:
property Func<T> ^ ObjectCreator { Func<T> ^ get(); void set(Func<T> ^ value); };
public Func<T>? ObjectCreator { get; init; }
member this.ObjectCreator : Func<'T> with get, set
Public Property ObjectCreator As Func(Of T)
屬性值
- Func<T>
備註
此 API 可供 System.Text.Json 來源產生器的輸出使用,不應直接呼叫。