Skip to content

Commit 83c46ff

Browse files
authored
Update README.md
1 parent ff97a01 commit 83c46ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Collection of .NET libraries like utilities and controls that target .NET Standa
7474
* [`AppSettingsConnector`](https://github.com/BionicCode/BionicCode.Net#AppSettingsConnector) - A default API to the `AppSettings` that provides strongly typed reading and writing (e.g. `bool`, `int`, `double`, `string`) of key-value pair values
7575
* [`MruManager`](https://github.com/BionicCode/BionicCode.Net#mru-most-recently-used-file-manager) - Most Recently Used (MRU) file manager. An API that maintains an MRU table stored in the Application Settings file.
7676
* [`EventAggregator`](https://github.com/BionicCode/BionicCode.Net#eventaggregator) - Implementation of the Event Aggregator pattern that supports dynamic aggregation of different typed event sources
77-
* `AutoResetStream` - A `Stream` decorator that automatically resets the stream's position after read/write access.
77+
* [`AutoResetStream`](https://github.com/BionicCode/BionicCode.Net#autoresetstream) - A `Stream` decorator that automatically resets the stream's position after read/write access.
7878
* Easy to use [`Dialog` attached behavior](https://github.com/BionicCode/BionicCode.Net#mvvm-dialog-attached-behavior) and infrastructure to allow MVVM friendly dialog handling from the view models in a fire-and-forget manner. To display dialogs implement `IDialogViewModel` classes and create a `DataTemplate` for each implementation. The `DataTemplate` is the rendered in a native `Window`. Addition attached properties allow for styling of the dialog `Window` or to assign an optional `DataTemplateSelector`. The attached behavior will handle showing and closing of the dialog.
7979

8080
### `BaseViewModel`
@@ -904,18 +904,18 @@ A `Stream` decorator that resets the stream's position after red(write access
904904
#### Example
905905

906906
```C#
907-
using (var fileStream = new FileStream("C:/Temp", FileMode.CreateNew))
907+
using (var fileStream = new FileStream("C:\Temp", FileMode.CreateNew))
908908
{
909909
bool leaveFileStreamOpen = true;
910910

911911
using (var autoResetStream = new AutoResetStream(fileStream, leaveFileStreamOpen))
912912
{
913913
byte[] buffer = new byte[1024];
914-
int bytesRead = await autoResetStream.ReadAsync(buffer, 0, buffer.Length);
915-
int currentPosition = autoResetStream.Position; // retuns: 0
914+
int bytesRead = await autoResetStream.ReadAsync(buffer, 0, buffer.Length); // bytesRead: 1024
915+
int currentPosition = autoResetStream.Position; // currentPosition: 0
916916
}
917917

918-
currentPosition = fileStream.Position; // retuns: 0
918+
currentPosition = fileStream.Position; // currentPosition: 0
919919
}
920920

921921
```

0 commit comments

Comments
 (0)