A class used by the InvariantAttribute aspect to count the number of times the SuspendInvariants
method has been invoked.
Namespace: Metalama.Patterns.Contracts
Assembly: Metalama.Patterns.Contracts.dll
Syntax
public sealed class InvariantSuspensionCounterConstructors
| Name | Description |
|---|---|
| InvariantSuspensionCounter() |
Properties
| Name | Description |
|---|---|
| AreInvariantsSuspended | Gets a value indicating whether the verification of invariants is currently suspended. |
Methods
| Name | Description |
|---|---|
| Decrement() | Decrements the counter and returns |
| Increment() | Increments the counter. |