Show / Hide Table of Contents

Class DatasetChoicesConverter

Inheritance
object
JsonConverter
JsonConverter<DatasetChoices>
DatasetChoicesConverter
Inherited Members
JsonConverter<DatasetChoices>.CanConvert(Type)
JsonConverter<DatasetChoices>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<DatasetChoices>.WriteAsPropertyName(Utf8JsonWriter, DatasetChoices, JsonSerializerOptions)
JsonConverter<DatasetChoices>.HandleNull
JsonConverter<DatasetChoices>.Type
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: CycloneDX.Json.Converters
Assembly: CycloneDX.Core.dll
Syntax
public class DatasetChoicesConverter : JsonConverter<DatasetChoices>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type DatasetChoices.

Declaration
public override DatasetChoices Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonReader reader

The reader.

Type typeToConvert

The type to convert.

JsonSerializerOptions options

An object that specifies serialization options to use.

Returns
Type Description
DatasetChoices

The converted value.

Overrides
JsonConverter<DatasetChoices>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
| Edit this page View Source

Write(Utf8JsonWriter, DatasetChoices, JsonSerializerOptions)

Writes a specified value as JSON.

Declaration
public override void Write(Utf8JsonWriter writer, DatasetChoices value, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer

The writer to write to.

DatasetChoices value

The value to convert to JSON.

JsonSerializerOptions options

An object that specifies serialization options to use.

Overrides
JsonConverter<DatasetChoices>.Write(Utf8JsonWriter, DatasetChoices, JsonSerializerOptions)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX