CollectionTally Class

Summary

CollectionTally counts (tallies) the number of occurrences of each object in one or more enumerations.
Namespace
TCLite.Constraints
Base Types
  • object
graph BT Type-->Base0["object"] Type["CollectionTally"] class Type type-node

Syntax

public sealed class CollectionTally

Constructors

Name Summary
CollectionTally(TCLiteEqualityComparer, IEnumerable) Construct a CollectionTally object from a comparer and a collection.

Properties

Name Value Summary
Result CollectionTally.CollectionTallyResult
The result of the comparison between the two collections.

Methods

Name Value Summary
TryRemove(IEnumerable) void
Try to remove a set of objects from the tally.
TryRemove(object) void
Try to remove an object from the tally.