Show / Hide Table of Contents

Class ItemCounter

Represents a visitor that counts the items under an IVersionable item.

Inheritance
object
VersionableVisitorBase
ItemCounter
Implements
IVersionableVisitor
Inherited Members
VersionableVisitorBase.depth
VersionableVisitorBase.HaveVisited(IVersionable)
VersionableVisitorBase.RegisterVisit(IVersionable)
VersionableVisitorBase.EndVisitItem(IVersionable)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class ItemCounter : VersionableVisitorBase, IVersionableVisitor

Properties

CountsByType

Gets the count of each type of item.

Declaration
public Dictionary<Guid, int> CountsByType { get; }
Property Value
Type Description
Dictionary<Guid, int>

SortedCounts

Gets the count of each type of item, sorted in descending order.

Declaration
public IOrderedEnumerable<KeyValuePair<Guid, int>> SortedCounts { get; }
Property Value
Type Description
IOrderedEnumerable<KeyValuePair<Guid, int>>

Methods

BeginVisitItem(IVersionable)

Called first when visiting an item, before visiting the item's children.

Declaration
public override void BeginVisitItem(IVersionable item)
Parameters
Type Name Description
IVersionable item

The item.

Overrides
VersionableVisitorBase.BeginVisitItem(IVersionable)

Implements

IVersionableVisitor

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX