PropertySet - rename and refactor

This commit is contained in:
Stephan
2017-07-21 17:04:14 +02:00
parent 5d1c0d916c
commit c31cbf6b6d
26 changed files with 180 additions and 211 deletions

View File

@@ -4,9 +4,7 @@ using System.Collections.Generic;
namespace Umbraco.Core.Models.PublishedContent
{
//
// This class has two purposes.
//
// - First, we cannot implement strongly-typed content by inheriting from some sort
// we cannot implement strongly-typed content by inheriting from some sort
// of "master content" because that master content depends on the actual content cache
// that is being used. It can be an XmlPublishedContent with the XmlPublishedCache,
// or just anything else.
@@ -15,11 +13,6 @@ namespace Umbraco.Core.Models.PublishedContent
// returned by the content cache, and providing extra properties (mostly) or
// methods or whatever. This class provides the base for such encapsulation.
//
// - Second, any time a content is used in a content set obtained from
// IEnumerable<IPublishedContent>.ToContentSet(), it needs to be cloned and extended
// in order to know about its position in the set. This class provides the base
// for implementing such extension.
//
/// <summary>
/// Provides an abstract base class for <c>IPublishedContent</c> implementations that
@@ -31,9 +24,9 @@ namespace Umbraco.Core.Models.PublishedContent
/// <summary>
/// Initialize a new instance of the <see cref="PublishedContentWrapped"/> class
/// with an <c>IPublishedContent</c> instance to wrap and extend.
/// with an <c>IPublishedContent</c> instance to wrap.
/// </summary>
/// <param name="content">The content to wrap and extend.</param>
/// <param name="content">The content to wrap.</param>
protected PublishedContentWrapped(IPublishedContent content)
{
Content = content;
@@ -43,10 +36,7 @@ namespace Umbraco.Core.Models.PublishedContent
/// Gets the wrapped content.
/// </summary>
/// <returns>The wrapped content, that was passed as an argument to the constructor.</returns>
public IPublishedContent Unwrap()
{
return Content;
}
public IPublishedContent Unwrap() => Content;
#region ContentType