Class PublishedContentSet<T>
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public class PublishedContentSet<T> : IEnumerable<T>, IEnumerable where T : class, IPublishedContent
Type Parameters
Name |
Description |
T |
The type of content.
|
Fields
Source
Declaration
protected readonly IEnumerable<T> Source
Field Value
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Properties
Count
Gets the number of items in the set.
Declaration
public virtual int Count { get; }
Property Value
Type |
Description |
System.Int32 |
The number of items in the set.
|
Methods
ElementAt(Int32)
Declaration
public T ElementAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
ElementAtOrDefault(Int32)
Declaration
public T ElementAtOrDefault(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
First()
Declaration
Returns
First(Func<T, Boolean>)
Declaration
public T First(Func<T, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<T, System.Boolean> |
predicate |
|
Returns
FirstOrDefault()
Declaration
public T FirstOrDefault()
Returns
FirstOrDefault(Func<T, Boolean>)
Declaration
public T FirstOrDefault(Func<T, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<T, System.Boolean> |
predicate |
|
Returns
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<T> |
|
Last()
Declaration
Returns
Last(Func<T, Boolean>)
Declaration
public T Last(Func<T, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<T, System.Boolean> |
predicate |
|
Returns
LastOrDefault()
Declaration
Returns
LastOrDefault(Func<T, Boolean>)
Declaration
public T LastOrDefault(Func<T, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<T, System.Boolean> |
predicate |
|
Returns
OrderBy<TKey>(Func<T, TKey>)
Declaration
public PublishedContentOrderedSet<T> OrderBy<TKey>(Func<T, TKey> keySelector)
Parameters
Type |
Name |
Description |
System.Func<T, TKey> |
keySelector |
|
Returns
Type Parameters
OrderBy<TKey>(Func<T, TKey>, IComparer<TKey>)
Declaration
public PublishedContentOrderedSet<T> OrderBy<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer)
Parameters
Type |
Name |
Description |
System.Func<T, TKey> |
keySelector |
|
System.Collections.Generic.IComparer<TKey> |
comparer |
|
Returns
Type Parameters
OrderByDescending<TKey>(Func<T, TKey>)
Declaration
public PublishedContentOrderedSet<T> OrderByDescending<TKey>(Func<T, TKey> keySelector)
Parameters
Type |
Name |
Description |
System.Func<T, TKey> |
keySelector |
|
Returns
Type Parameters
OrderByDescending<TKey>(Func<T, TKey>, IComparer<TKey>)
Declaration
public PublishedContentOrderedSet<T> OrderByDescending<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer)
Parameters
Type |
Name |
Description |
System.Func<T, TKey> |
keySelector |
|
System.Collections.Generic.IComparer<TKey> |
comparer |
|
Returns
Type Parameters
Single()
Declaration
Returns
Single(Func<T, Boolean>)
Declaration
public T Single(Func<T, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<T, System.Boolean> |
predicate |
|
Returns
SingleOrDefault()
Declaration
public T SingleOrDefault()
Returns
SingleOrDefault(Func<T, Boolean>)
Declaration
public T SingleOrDefault(Func<T, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<T, System.Boolean> |
predicate |
|
Returns