Implements a threadsafe Begin/End style counter with callback on first begin/last end
| C# |
public class Counter
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| Counter(Int32, EventHandler, EventHandler) |
Constructor
| |
| Begin()()() |
Begin the process, increments count
| |
| BeginCallback |
Event when the counter is != 0 for the first time
| |
| Count |
Returns the count
| |
| End()()() |
End the process, decrements count
| |
| EndCallback |
Event when counter is == 0 after having previously not been 0
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| InProcess()()() |
If true, the count != 0
| |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ToString()()() | (Inherited from Object.) |
| Object | |
| Counter | |