View Source
Class LazyReadOnlyCollection<T>
Assembly: Umbraco.Core.dll
Syntax
public sealed class LazyReadOnlyCollection<T>
Type Parameters
Constructors
View Source
LazyReadOnlyCollection(Func<IEnumerable<T>>)
Declaration
public LazyReadOnlyCollection(Func<IEnumerable<T>> lazyCollection)
Parameters
| Type |
Name |
Description |
| Func<IEnumerable<T>> |
lazyCollection |
|
View Source
LazyReadOnlyCollection(Lazy<IEnumerable<T>>)
Declaration
public LazyReadOnlyCollection(Lazy<IEnumerable<T>> lazyCollection)
Parameters
| Type |
Name |
Description |
| Lazy<IEnumerable<T>> |
lazyCollection |
|
Properties
View Source
Count
Gets the number of elements in the collection.
Declaration
public int Count { get; }
Property Value
| Type |
Description |
| int |
The number of elements in the collection.
|
View Source
Value
Declaration
public IEnumerable<T> Value { get; }
Property Value
| Type |
Description |
| IEnumerable<T> |
|
Methods
View Source
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
| Type |
Description |
| IEnumerator<T> |
An enumerator that can be used to iterate through the collection.
|