Skip to main content

Enterspeed Value Converter

A property value converter is a class that will convert the input value from Umbraco into an IEnterspeedProperty. To implement your own converter you need to implement the IEnterspeedPropertyValueConverter interface

IEnterspeedPropertyValueConverter

This interface contains two methods that need to be implemented

IsConverter

This method is called when the EnterspeedPropertyService tries to find the proper converter for this property. An implementation of this method could look like this:

Convert

This is the method that is converting the Umbraco property to an IEnterspeedProperty. An implementation of this method could look like this:

Registering a converter

Converters are registered in Umbraco via an IComposer. Umbraco 9+
Umbraco 8
Umbraco 7
Note that the EnterspeedPropertyService will find the converters in the order that they are registered, which means that if you want to replace a default converter with your own, you need to insert your converter like this: Umbraco 9+
Umbraco 8
Umbraco 7

Default converters

Enterspeed ships with default property value converters for all the built-in property editors that Umbraco ships with out of the box.