Update XML documentation
This commit is contained in:
@@ -4,13 +4,16 @@ using Umbraco.Core.Models.PublishedContent;
|
||||
namespace Umbraco.Core.PropertyEditors
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides a default overridable implementation for <see cref="IPropertyValueConverter"/> that does nothing.
|
||||
/// Provides a default implementation for <see cref="IPropertyValueConverter" />.
|
||||
/// </summary>
|
||||
/// <seealso cref="Umbraco.Core.PropertyEditors.IPropertyValueConverter" />
|
||||
public abstract class PropertyValueConverterBase : IPropertyValueConverter
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public virtual bool IsConverter(IPublishedPropertyType propertyType)
|
||||
=> false;
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual bool? IsValue(object value, PropertyValueLevel level)
|
||||
{
|
||||
switch (level)
|
||||
@@ -35,18 +38,23 @@ namespace Umbraco.Core.PropertyEditors
|
||||
return value != null && (!(value is string stringValue) || !string.IsNullOrWhiteSpace(stringValue));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual Type GetPropertyValueType(IPublishedPropertyType propertyType)
|
||||
=> typeof(object);
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType)
|
||||
=> PropertyCacheLevel.Snapshot;
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview)
|
||||
=> source;
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual object ConvertIntermediateToObject(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel referenceCacheLevel, object inter, bool preview)
|
||||
=> inter;
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual object ConvertIntermediateToXPath(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel referenceCacheLevel, object inter, bool preview)
|
||||
=> inter?.ToString() ?? string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user