Show / Hide Table of Contents

Class SignatureChoiceConverter

Inheritance
object
JsonConverter
JsonConverter<SignatureChoice>
SignatureChoiceConverter
Inherited Members
JsonConverter<SignatureChoice>.CanConvert(Type)
JsonConverter<SignatureChoice>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<SignatureChoice>.WriteAsPropertyName(Utf8JsonWriter, SignatureChoice, JsonSerializerOptions)
JsonConverter<SignatureChoice>.HandleNull
JsonConverter<SignatureChoice>.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 SignatureChoiceConverter : JsonConverter<SignatureChoice>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type SignatureChoice.

Declaration
public override SignatureChoice 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
SignatureChoice

The converted value.

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

Write(Utf8JsonWriter, SignatureChoice, JsonSerializerOptions)

Writes a specified value as JSON.

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

The writer to write to.

SignatureChoice value

The value to convert to JSON.

JsonSerializerOptions options

An object that specifies serialization options to use.

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