Add parameterless constructor to Fs.Path

We can finally initialize Fs.Path correctly thanks to C# 10 allowing parameterless constructors on structs
This commit is contained in:
Alex Barney 2021-11-14 17:44:45 -07:00
parent edfa3de6cb
commit 80e7466840

View file

@ -177,6 +177,14 @@ public ref struct Path
private int _writeBufferLength;
private bool _isNormalized;
public Path()
{
_string = EmptyPath;
_writeBuffer = null;
_writeBufferLength = 0;
_isNormalized = false;
}
public void Dispose()
{
byte[] writeBuffer = Shared.Move(ref _writeBuffer);