We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989a8ef commit a7f6fd1Copy full SHA for a7f6fd1
README.md
@@ -87,6 +87,17 @@ string? message = result?.Match(
87
);
88
```
89
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
101
# Contributing
102
See [CONTRIBUTION.md](https://github.com/flexxxxer/RamDrive.OsfMount/blob/master/CONTRIBUTION.md).
103
0 commit comments