New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

The base for all the image operation serializers.

Definition

Constructors

The default constructor for any image operation serializer.

C#
public ImageOperationSerializerBase()

Properties

Name of the current serializer. Every serializer should specify a name.

C#
public abstract string Name { get; }

Methods

Constructs an image operation from the serialized input

C#
public IImageOperation Deserialize(string value)
Parameters:valuestring

The serialized input

Returns:

IImageOperation

The image operation represented by the serialized input

Constructs an image operation from the provided data input

C#
public abstract IImageOperation FromData(Dictionary<string, object> data)
Parameters:dataDictionary<string, object>

The data content representing an image operation

Returns:

IImageOperation

An image operation represented by the provided data

Checks if the provided data is relevant to the current serializer

C#
protected bool NameInDataIsCorrect(Dictionary<string, object> data)
Parameters:dataDictionary<string, object>

The provided data

Returns:

bool

True if the provided data is relevant to the current image operation. False otherwise.

Serializes the image operation

C#
public string Serialize(IImageOperation operation)
Parameters:operationIImageOperation

The operation that should be serialized

Returns:

string

The string representation of the serialized image operation

Constructs a key/value pair collection from the image operation.

C#
public abstract Dictionary<string, object> ToData(IImageOperation operation)
Parameters:operationIImageOperation

The image operation, from which the data is contructed

Returns:

Dictionary<string, object>

The constructed data from the image operation