---
title: "ImageReader.CloseOnDispose Property "
canonical: https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_ImageReader_CloseOnDispose.htm
product: "Graphics Mill"
---

# ImageReader.CloseOnDispose Property 
 
Gets or sets if the reader should be closed before disposing.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public bool CloseOnDispose { get; set; }
```
 
### Property Value
 `true` if the reader should be closed before disposing, `false` otherwise.
   
## See Also

### Reference

- [ImageReader Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_ImageReader.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
