แก้ไข

แชร์ผ่าน


JsonTypeInfo.KeyType Property

Definition

Gets the key type corresponding to a dictionary type.

public:
 property Type ^ KeyType { Type ^ get(); };
public Type? KeyType { get; }
member this.KeyType : Type
Public ReadOnly Property KeyType As Type

Property Value

Remarks

Returns the key type for dictionary types.

Returns null for all other types or types using custom converters.

Applies to