Skip to content

Commit a7f6fd1

Browse files
author
flexxxxer
committed
readme updated
1 parent 989a8ef commit a7f6fd1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ string? message = result?.Match(
8787
);
8888
```
8989

90+
Or, you can use object-oriented approach with disposable object:
91+
```csharp
92+
using (var drive = await OsfMountRamDrive.New(ByteSize.FromMebiBytes(512), FileSystemType.NTFS))
93+
{
94+
string drivePath = drive.Path;
95+
DriveLetter driveLetter = drive.DriveLetter;
96+
97+
// use drive ...
98+
}
99+
```
100+
90101
# Contributing
91102
See [CONTRIBUTION.md](https://github.com/flexxxxer/RamDrive.OsfMount/blob/master/CONTRIBUTION.md).
92103

0 commit comments

Comments
 (0)