This project is read-only.

ValueConverterBase Class

Namespace: Artemkv.Transformation.XmlToObject

Base implementation of the IValueConvertor.

Syntax

public abstract class ValueConverterBase : IValueConvertor

Methods

Convert

Summary

Performs the conversion of a string to a value of member type.

	public object Convert(string value, SerializationContext context)

Parameters:

value
The value to convert.
context
The serialization context.

Returns:

The converted value.

ConvertBack

Summary

Performs the backward conversion of the value of member type to a string.

	public string ConvertBack(object value, SerializationContext context)

Parameters:

value
The value to convert.
context
The serialization context.

Returns:

The converted value.

TryConvert

Summary

Tries to perform the conversion of a string to a value of member type.

	public abstract bool TryConvert(string value, SerializationContext context, out object convertedValue)

Parameters:

value
The value to convert.
context
The serialization context.
convertedValue
The converted value.

Returns:

True, if conversion was successful; otherwise, False.

TryConvertBack

Summary

Performs the conversion of a string to a value of member type.

	public abstract bool TryConvertBack(object value, SerializationContext context, out string convertedValue)

Parameters:

value
The value to convert.
context
The serialization context.
convertedValue
The converted value.

Returns:

True, if conversion was successful; otherwise, False.

.

Last edited Nov 16, 2012 at 10:55 PM by artemkv, version 1

Comments

No comments yet.