15 references to FieldOnlyResult
Microsoft.Extensions.Caching.Hybrid (15)
Internal\DefaultJsonSerializerFactory.cs (15)
49Dictionary<Type, FieldOnlyResult>? state = null; // only needed for complex types
50return IsFieldOnlyType(type, ref state) == FieldOnlyResult.FieldOnly;
62private static FieldOnlyResult IsFieldOnlyType(
63Type type, ref Dictionary<Type, FieldOnlyResult>? state)
67return FieldOnlyResult.NotFieldOnly;
71if (state is not null && state.TryGetValue(type, out var existingResult))
85if (IsFieldOnlyType(iType.GetGenericArguments()[0], ref state) == FieldOnlyResult.FieldOnly)
103if (IsFieldOnlyType(prop.PropertyType, ref state) == FieldOnlyResult.FieldOnly)
117static void PrepareStateForDepth(Type type, ref Dictionary<Type, FieldOnlyResult>? state)
122state.Add(type, FieldOnlyResult.Incomplete);
126static FieldOnlyResult SetState(Type type, Dictionary<Type, FieldOnlyResult>? state, bool result)
128var value = result ? FieldOnlyResult.FieldOnly : FieldOnlyResult.NotFieldOnly;