Class BuilderCollectionBase<TItem>
Provides a base class for builder collections.
Inheritance
System.Object
Namespace: Umbraco.Core.Composing
Assembly: Umbraco.Core.dll
Syntax
public abstract class BuilderCollectionBase<TItem> : IBuilderCollection<TItem>, IEnumerable<TItem>, IEnumerable
Type Parameters
Name | Description |
---|---|
TItem | The type of the items. |
Constructors
View SourceBuilderCollectionBase(IEnumerable<TItem>)
Initializes a new instance of the BuilderCollectionBase<TItem> with items.
Declaration
protected BuilderCollectionBase(IEnumerable<TItem> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.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 |
Methods
View SourceGetEnumerator()
Gets an enumerator.
Declaration
public IEnumerator<TItem> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<TItem> |