19 references to FSharpKind
System.Text.Json (19)
System\Text\Json\Serialization\Converters\FSharp\FSharpTypeConverterFactory.cs (9)
8
using FSharpKind = System.Text.Json.Serialization.Metadata.FSharpCoreReflectionProxy.
FSharpKind
;
24
FSharpCoreReflectionProxy.Instance.DetectFSharpKind(typeToConvert) is not
FSharpKind
.Unrecognized;
40
case
FSharpKind
.Option:
45
case
FSharpKind
.ValueOption:
50
case
FSharpKind
.List:
54
case
FSharpKind
.Set:
58
case
FSharpKind
.Map:
64
case
FSharpKind
.Record:
69
case
FSharpKind
.Union:
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (10)
147
public
FSharpKind
DetectFSharpKind(Type type)
153
return
FSharpKind
.Unrecognized;
159
if (genericType == _fsharpOptionType) return
FSharpKind
.Option;
160
if (genericType == _fsharpValueOptionType) return
FSharpKind
.ValueOption;
161
if (genericType == _fsharpListType) return
FSharpKind
.List;
162
if (genericType == _fsharpSetType) return
FSharpKind
.Set;
163
if (genericType == _fsharpMapType) return
FSharpKind
.Map;
168
SourceConstructFlags.RecordType =>
FSharpKind
.Record,
169
SourceConstructFlags.SumType =>
FSharpKind
.Union,
170
_ =>
FSharpKind
.Unrecognized