語言

MessageFormatterEnumerableTracker.CanSerialize(Type) 方法

定義

檢查給定 Type 的 是否實 IAsyncEnumerable<T>作 。

public static bool CanSerialize(Type objectType);
static member CanSerialize : Type -> bool
Public Shared Function CanSerialize (objectType As Type) As Boolean

參數

objectType
Type

該類型可能實現 IAsyncEnumerable<T>。

傳回

若給出 Type 實現則 IAsyncEnumerable<T>為真;否則為假。

適用於