Skip to main content

Class ShapeItemConverter

Namespace: Aurigma.DesignAtoms.Serialization.Json
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ShapeItemConverter : ItemConverter

Inheritance: System.Object -> Aurigma.DesignAtoms.Serialization.Json.BaseTypeConverter<Aurigma.DesignAtoms.Model.Items.BaseItem> -> Aurigma.DesignAtoms.Serialization.Json.ItemConverter -> ShapeItemConverter

Inherited Members

Constructors

ShapeItemConverter

public ShapeItemConverter(ILifetimeScope scope, IStateResourcesRepository stateResourcesRepository = null, ISerializableStorage serializationStorage = null, IRepositoryFileProtector repositoryFileProtector = null)

Methods

WriteJson

public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
TypeNameDescription
Newtonsoft.Json.JsonWriterwriter
System.Objectvalue
Newtonsoft.Json.JsonSerializerserializer
Overrides
  • Aurigma.DesignAtoms.Serialization.Json.BaseTypeConverter<Aurigma.DesignAtoms.Model.Items.BaseItem>.WriteJson(Newtonsoft.Json.JsonWriter,System.Object,Newtonsoft.Json.JsonSerializer)

ReadJson

public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
TypeNameDescription
Newtonsoft.Json.JsonReaderreader
System.TypeobjectType
System.ObjectexistingValue
Newtonsoft.Json.JsonSerializerserializer
Returns

System.Object

Overrides

CanConvert

public override bool CanConvert(Type objectType)
Parameters
TypeNameDescription
System.TypeobjectType
Returns

System.Boolean

Overrides
Was this page helpful?