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