BitmapLoaderScope class¶
Defined in
Namespace: Splat.Common.Test
Assembly: Splat.Common.Test.dll
Full name: Splat.Common.Test.BitmapLoaderScope
Modifiers: public sealed
Summary¶
A scope that saves and restores the BitmapLoader state for test isolation.
Use in a using statement to ensure proper cleanup.
Applies to
net11.0, net10.0
Class hierarchy
classDiagram
class BitmapLoaderScope
class IDisposable {
<>
}
IDisposable <|.. BitmapLoaderScope
Implements: IDisposable
Examples¶
[Test]
public void MyTest()
{
using var scope = new BitmapLoaderScope();
// Test code here - BitmapLoader will be reset to fresh state after the test
}
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [BitmapLoaderScope](# class. Saves the current BitmapLoader state and resets it to default. |
Methods¶
| Name | Summary |
|---|---|
| Dispose | Restores the BitmapLoader to its previous state. |