November Happy Hour will be moved to Thursday December 5th.

Class JsonStringToPropertyEditorSettingsConverter

Provides a way to convert between JSON string and PropertyEditorSettings

Inheritance
System.Object
JsonStringToPropertyEditorSettingsConverter
Namespace: EPiServer.Web.PropertyControls
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class JsonStringToPropertyEditorSettingsConverter : TypeConverter

Constructors

JsonStringToPropertyEditorSettingsConverter()

Declaration
public JsonStringToPropertyEditorSettingsConverter()

Properties

ObjectSerializerFactory

Gets or sets the object serializer to use when serializing to Json.

Declaration
protected Injected<IObjectSerializerFactory> ObjectSerializerFactory { get; set; }
Property Value
Type Description
Injected<IObjectSerializerFactory>

The object serializer.

Methods

CanConvertFrom(ITypeDescriptorContext, Type)

Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Type sourceType
Returns
Type Description
System.Boolean

CanConvertTo(ITypeDescriptorContext, Type)

Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Type destinationType
Returns
Type Description
System.Boolean

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Globalization.CultureInfo culture
System.Object value
Returns
Type Description
System.Object

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Type Name Description
System.ComponentModel.ITypeDescriptorContext context
System.Globalization.CultureInfo culture
System.Object value
System.Type destinationType
Returns
Type Description
System.Object

Extension Methods