/// <summary> /// Converts the source value into the intermediate value. /// </summary> /// <param name="owner">The published element owning the property.</param> /// <param name="source">The source value.</param> /// <param name="preview">A value indicating whether content should be considered draft.</param> /// <returns>The intermediate value.</returns> public object ConvertSourceToInter(IPublishedElement owner, object source, bool preview) { if (!_initialized) { Initialize(); } // use the converter if any, else just return the source value return(_converter != null ? _converter.ConvertSourceToIntermediate(owner, this, source, preview) : source); }
public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview) { return(_baseValueConverter.ConvertSourceToIntermediate(owner, propertyType, source, preview)); }