Class BuilderCollectionBase<TItem>
Provides a base class for builder collections.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Composing
Assembly: Umbraco.Core.dll
Syntax
public abstract class BuilderCollectionBase<TItem> : IBuilderCollection<TItem>
Type Parameters
Name | Description |
---|---|
TItem | The type of the items. |
Constructors
View SourceBuilderCollectionBase(Func<IEnumerable<TItem>>)
Initializes a new instance of the BuilderCollectionBase<TItem> with items.
Declaration
public BuilderCollectionBase(Func<IEnumerable<TItem>> items)
Parameters
Type | Name | Description |
---|---|---|
Func<System.Collections.IEnumerable<TItem>> | items | The items. |
Properties
View SourceCount
Gets the number of items in the collection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The count. |
Methods
View SourceGetEnumerator()
Declaration
public IEnumerator<TItem> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator<TItem> |