語言

BinaryEmbedding.VectorConverter 類別

定義

提供序列化JsonConverter<T>實例的 。BitArray

public: ref class BinaryEmbedding::VectorConverter sealed : System::Text::Json::Serialization::JsonConverter<System::Collections::BitArray ^>
public sealed class BinaryEmbedding.VectorConverter : System.Text.Json.Serialization.JsonConverter<System.Collections.BitArray>
type BinaryEmbedding.VectorConverter = class
    inherit JsonConverter<BitArray>
Public NotInheritable Class BinaryEmbedding.VectorConverter
Inherits JsonConverter(Of BitArray)
繼承
BinaryEmbedding.VectorConverter

建構函式

名稱 Description
BinaryEmbedding.VectorConverter()

提供序列化JsonConverter<T>實例的 。BitArray

屬性

名稱 Description
HandleNull

會得到一個值,指示序列化時是否 null 應該傳給轉換器,以及解序時是否 Null 應該傳遞。

(繼承來源 JsonConverter<T>)
Type

取得目前轉換器實例正在轉換的類型。

(繼承來源 JsonConverter<T>)

方法

名稱 Description
CanConvert(Type)

判斷是否能轉換指定類型。

(繼承來源 JsonConverter<T>)
Read(Utf8JsonReader, Type, JsonSerializerOptions)

讀取並轉換 JSON 為 T類型。

ReadAsPropertyName(Utf8JsonReader, Type, JsonSerializerOptions)

從 JSON 屬性名稱讀取字典金鑰。

(繼承來源 JsonConverter<T>)
Write(Utf8JsonWriter, BitArray, JsonSerializerOptions)

將指定的值寫成 JSON。

Write(Utf8JsonWriter, T, JsonSerializerOptions)

將指定的值寫成 JSON。

(繼承來源 JsonConverter<T>)
WriteAsPropertyName(Utf8JsonWriter, T, JsonSerializerOptions)

它會把字典鍵寫成 JSON 屬性名稱。

(繼承來源 JsonConverter<T>)

適用於