Skip to content

Commit

Permalink
readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
flexxxxer committed Apr 21, 2023
1 parent 989a8ef commit a7f6fd1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ string? message = result?.Match(
);
```

Or, you can use object-oriented approach with disposable object:
```csharp
using (var drive = await OsfMountRamDrive.New(ByteSize.FromMebiBytes(512), FileSystemType.NTFS))
{
string drivePath = drive.Path;
DriveLetter driveLetter = drive.DriveLetter;

// use drive ...
}
```

# Contributing
See [CONTRIBUTION.md](https://github.com/flexxxxer/RamDrive.OsfMount/blob/master/CONTRIBUTION.md).

Expand Down

0 comments on commit a7f6fd1

Please sign in to comment.