Search Results for

    Show / Hide Table of Contents

    Class PublishInfoConverter

    Converter for the PublishInfo class

    Inheritance
    System.Object
    PublishInfoConverter
    Namespace: ImageVault.Common.Serialization
    Assembly: ImageVault.Common.dll
    Syntax
    public class PublishInfoConverter : JsonConverter
    Remarks

    Since the PublishInfo class has some properties as read only we need this converter to be able to serialize them using the Newtonsoft json library

    Constructors

    PublishInfoConverter()

    Declaration
    public PublishInfoConverter()

    Properties

    CanWrite

    Declaration
    public override bool CanWrite { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    CanConvert(Type)

    Declaration
    public override bool CanConvert(Type objectType)
    Parameters
    Type Name Description
    System.Type objectType
    Returns
    Type Description
    System.Boolean

    ReadJson(JsonReader, Type, Object, JsonSerializer)

    Declaration
    public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
    Parameters
    Type Name Description
    Newtonsoft.Json.JsonReader reader
    System.Type objectType
    System.Object existingValue
    Newtonsoft.Json.JsonSerializer serializer
    Returns
    Type Description
    System.Object

    WriteJson(JsonWriter, Object, JsonSerializer)

    Declaration
    public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
    Parameters
    Type Name Description
    Newtonsoft.Json.JsonWriter writer
    System.Object value
    Newtonsoft.Json.JsonSerializer serializer

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022