Fixed returntype of IPublishedContent.Siblings<T> to be IEnumerable<T> rather than IEnumerable<IPublishedContent>

This commit is contained in:
christophnz
2019-08-30 14:06:00 +12:00
committed by Sebastiaan Janssen
parent 13e704e36c
commit 1d94c4b9bb

View File

@@ -1067,7 +1067,7 @@ namespace Umbraco.Web
/// <remarks>
/// <para>Note that in V7 this method also return the content node self.</para>
/// </remarks>
public static IEnumerable<IPublishedContent> Siblings<T>(this IPublishedContent content, string culture = null)
public static IEnumerable<T> Siblings<T>(this IPublishedContent content, string culture = null)
where T : class, IPublishedContent
{
return SiblingsAndSelf<T>(content, culture).Where(x => x.Id != content.Id);