Skip to content

Commit 249b3b8

Browse files
author
Ronald Barendse
committed
Update XML documentation
1 parent eac6351 commit 249b3b8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Umbraco.Core/PropertyEditors/PropertyValueConverterBase.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
namespace Umbraco.Core.PropertyEditors
55
{
66
/// <summary>
7-
/// Provides a default overridable implementation for <see cref="IPropertyValueConverter"/> that does nothing.
7+
/// Provides a default implementation for <see cref="IPropertyValueConverter" />.
88
/// </summary>
9+
/// <seealso cref="Umbraco.Core.PropertyEditors.IPropertyValueConverter" />
910
public abstract class PropertyValueConverterBase : IPropertyValueConverter
1011
{
12+
/// <inheritdoc />
1113
public virtual bool IsConverter(IPublishedPropertyType propertyType)
1214
=> false;
1315

16+
/// <inheritdoc />
1417
public virtual bool? IsValue(object value, PropertyValueLevel level)
1518
{
1619
switch (level)
@@ -35,18 +38,23 @@ public virtual bool HasValue(IPublishedProperty property, string culture, string
3538
return value != null && (!(value is string stringValue) || !string.IsNullOrWhiteSpace(stringValue));
3639
}
3740

41+
/// <inheritdoc />
3842
public virtual Type GetPropertyValueType(IPublishedPropertyType propertyType)
3943
=> typeof(object);
4044

45+
/// <inheritdoc />
4146
public virtual PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType)
4247
=> PropertyCacheLevel.Snapshot;
4348

49+
/// <inheritdoc />
4450
public virtual object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview)
4551
=> source;
4652

53+
/// <inheritdoc />
4754
public virtual object ConvertIntermediateToObject(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel referenceCacheLevel, object inter, bool preview)
4855
=> inter;
4956

57+
/// <inheritdoc />
5058
public virtual object ConvertIntermediateToXPath(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel referenceCacheLevel, object inter, bool preview)
5159
=> inter?.ToString() ?? string.Empty;
5260
}

0 commit comments

Comments
 (0)