19 references to FSharpKind
System.Text.Json (19)
System\Text\Json\Serialization\Converters\FSharp\FSharpTypeConverterFactory.cs (9)
7
using FSharpKind = System.Text.Json.Serialization.Metadata.FSharpCoreReflectionProxy.
FSharpKind
;
23
FSharpCoreReflectionProxy.Instance.DetectFSharpKind(typeToConvert) is not
FSharpKind
.Unrecognized;
39
case
FSharpKind
.Option:
44
case
FSharpKind
.ValueOption:
49
case
FSharpKind
.List:
53
case
FSharpKind
.Set:
57
case
FSharpKind
.Map:
63
case
FSharpKind
.Record:
68
case
FSharpKind
.Union:
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (10)
118
public
FSharpKind
DetectFSharpKind(Type type)
124
return
FSharpKind
.Unrecognized;
130
if (genericType == _fsharpOptionType) return
FSharpKind
.Option;
131
if (genericType == _fsharpValueOptionType) return
FSharpKind
.ValueOption;
132
if (genericType == _fsharpListType) return
FSharpKind
.List;
133
if (genericType == _fsharpSetType) return
FSharpKind
.Set;
134
if (genericType == _fsharpMapType) return
FSharpKind
.Map;
139
SourceConstructFlags.RecordType =>
FSharpKind
.Record,
140
SourceConstructFlags.SumType =>
FSharpKind
.Union,
141
_ =>
FSharpKind
.Unrecognized