Table of Contents

Struct NoOpDisposableBlock

Namespace
Garyon.Objects.Disposable
Assembly
Garyon.dll

Provides a disposable block that does nothing upon disposal.

public readonly struct NoOpDisposableBlock : IDisposable
Implements
Inherited Members
Extension Methods

Remarks

Consider using this struct in scenarios where a disposable object is required, but no actual disposal logic is necessary.
Another emerging pattern can be decorating a block of operations to avoid having stranded braces enclosing the block.