C# Class InfoPathScraper.Utilities.BucketCounter

Utility class that keeps a count of how many occurences of a particular key there were. This can be generalized by making the BucketCounter be templated to the keyType.
Mostra file Open project: OfficeDev/PnP-Transformation

Public Methods

Method Description
BucketCounter ( ) : System
DefineKey ( string key ) : void

Creates a key and initializes it to a count of zero.

IncrementKey ( string key ) : void

Make sure we have a counter for the key and increment it. Note that this is why I use Int32 objects instead of int

Method Details

BucketCounter() public method

public BucketCounter ( ) : System
return System

DefineKey() public method

Creates a key and initializes it to a count of zero.
public DefineKey ( string key ) : void
key string
return void

IncrementKey() public method

Make sure we have a counter for the key and increment it. Note that this is why I use Int32 objects instead of int
public IncrementKey ( string key ) : void
key string
return void