语言

JsonTypeInfo.ElementType 属性

定义

获取对应于可枚举、字典或可选类型的元素类型。

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

属性值

注解

返回可枚举类型的元素类型,字典类型的值类型,

和 F# 可选类型的基础类型 Nullable<T> 。

null使用自定义转换器返回所有其他类型或类型。

适用于