\r\n

51Degrees Pipeline .NET  4.4

51Degrees Pipeline for .NET

FiftyOne.Pipeline.JsonBuilder.Converters.AspectPropertyValueConverter Class Reference

Detailed Description

A JsonConverter that converts IAspectPropertyValue instances into JSON data.

Note that this converter only handles the internal value itself, The IAspectPropertyValue.NoValueMessage property is handled separately.

Inheritance diagram for FiftyOne.Pipeline.JsonBuilder.Converters.AspectPropertyValueConverter:

[legend]

Collaboration diagram for FiftyOne.Pipeline.JsonBuilder.Converters.AspectPropertyValueConverter:

[legend]

Public Member Functions

override bool  CanConvert (Type objectType)
Returns true if the converter can convert objects of the supplied type. More...
override object  ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Convert the data from the given reader. More...
override void  WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
Write the given value to JSON More...

Public Attributes

override bool  CanRead => false
If true then this converter can be used for reading as well as writing JSON. More...

Member Function Documentation

◆ CanConvert()

override bool FiftyOne.Pipeline.JsonBuilder.Converters.AspectPropertyValueConverter.CanConvert ( Type   objectType )

Returns true if the converter can convert objects of the supplied type.

Parameters
objectType - The type to check against.
Returns
True if the converter can convert the supplied type. False if not.

◆ ReadJson()

override object FiftyOne.Pipeline.JsonBuilder.Converters.AspectPropertyValueConverter.ReadJson ( JsonReader   reader,
Type   objectType,
object   existingValue,
JsonSerializer   serializer  
)

Convert the data from the given reader.

Parameters
reader - The reader to read from.
objectType - The type of the object to return.
existingValue - ??
serializer - The serializer to use when reading the JSON.
Returns
The data object.

◆ WriteJson()

override void FiftyOne.Pipeline.JsonBuilder.Converters.AspectPropertyValueConverter.WriteJson ( JsonWriter   writer,
object   value,
JsonSerializer   serializer  
)

Write the given value to JSON

Parameters
writer - The writer to use when writing the output.
value - The value to be converted to JSON
serializer - Not used.
Exceptions
ArgumentNullException - Thrown if one of the supplied parameters is null.

Member Data Documentation

◆ CanRead

override bool FiftyOne.Pipeline.JsonBuilder.Converters.AspectPropertyValueConverter.CanRead => false

If true then this converter can be used for reading as well as writing JSON.