public RawValueProperty(PublishedPropertyType propertyType)
     : base(propertyType)
 {
     _dbVal       = null;
     _sourceValue = new Lazy <object>(() => PropertyType.ConvertDataToSource(_dbVal, false));
     _objectValue = new Lazy <object>(() => PropertyType.ConvertSourceToObject(_sourceValue.Value, false));
     _xpathValue  = new Lazy <object>(() => PropertyType.ConvertSourceToXPath(_sourceValue.Value, false));
 }
        public XmlPublishedProperty(PublishedPropertyType propertyType, bool isPreviewing)
            : base(propertyType)
        {
            _xmlValue     = string.Empty;
            _isPreviewing = isPreviewing;

            _sourceValue = new Lazy <object>(() => PropertyType.ConvertDataToSource(_xmlValue, _isPreviewing));
            _objectValue = new Lazy <object>(() => PropertyType.ConvertSourceToObject(_sourceValue.Value, _isPreviewing));
            _xpathValue  = new Lazy <object>(() => PropertyType.ConvertSourceToXPath(_sourceValue.Value, _isPreviewing));
        }