Class EnumerableModelWithIdToConceptOrPrimitiveEnumerableConverter<T, TElement>
- Namespace
- Cratis.Json
- Assembly
- Cratis.Fundamentals.dll
Represents a JsonConverter<T> for enumerable of concepts or primitive types represented as models with _id field.
public class EnumerableModelWithIdToConceptOrPrimitiveEnumerableConverter<T, TElement> : JsonConverter<T> where T : IEnumerable
Type Parameters
TUnderlying type.
TElementElement type.
- Inheritance
-
EnumerableModelWithIdToConceptOrPrimitiveEnumerableConverter<T, TElement>
- Inherited Members
- Extension Methods
Constructors
EnumerableModelWithIdToConceptOrPrimitiveEnumerableConverter()
Initializes a new instance of the EnumerableModelWithIdToConceptOrPrimitiveEnumerableConverter<T, TElement> class.
public EnumerableModelWithIdToConceptOrPrimitiveEnumerableConverter()
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
public override T? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReadertypeToConvertTypeoptionsJsonSerializerOptions
Returns
- T
Write(Utf8JsonWriter, T, JsonSerializerOptions)
public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
Parameters
writerUtf8JsonWritervalueToptionsJsonSerializerOptions