Fixed returntype of IPublishedContent.Siblings<T> to be IEnumerable<T> rather than IEnumerable<IPublishedContent>
This commit is contained in:
committed by
Sebastiaan Janssen
parent
13e704e36c
commit
1d94c4b9bb
@@ -1067,7 +1067,7 @@ namespace Umbraco.Web
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// <para>Note that in V7 this method also return the content node self.</para>
|
/// <para>Note that in V7 this method also return the content node self.</para>
|
||||||
/// </remarks>
|
/// </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
|
where T : class, IPublishedContent
|
||||||
{
|
{
|
||||||
return SiblingsAndSelf<T>(content, culture).Where(x => x.Id != content.Id);
|
return SiblingsAndSelf<T>(content, culture).Where(x => x.Id != content.Id);
|
||||||
|
|||||||
Reference in New Issue
Block a user