Class TrackedFileStream
An extended
Namespace: ICSharpCode.SharpZipLib.Tests.TestSupport
Syntax
public class TrackedFileStream : FileStream
Constructors
TrackedFileStream(String, FileMode, FileAccess)
Initializes a new instance of the TrackedMemoryStream class.
Declaration
public TrackedFileStream(string path, FileMode mode = null, FileAccess access = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | |
| FileMode | mode | |
| FileAccess | access |
Properties
IsClosed
Gets a value indicating whether this instance is closed.
Declaration
public bool IsClosed { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
IsDisposed
Gets a value indicating whether this instance is disposed.
Declaration
public bool IsDisposed { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Methods
Close()
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
Declaration
public override void Close()
Dispose(Boolean)
Releases the unmanaged resources used by the MemoryStream class and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |