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