Use ReadExactly when available in .NET 7 or higher.

This commit is contained in:
2025-08-07 22:15:28 +01:00
parent c3671c38c0
commit 1c773f9467

View File

@@ -57,7 +57,11 @@ namespace Claunia.PropertyList
using FileStream raf = file.OpenRead();
#if NET7_0_OR_GREATER
raf.ReadExactly(Bytes, 0, (int)file.Length);
#else
raf.Read(Bytes, 0, (int)file.Length);
#endif
}
/// <summary>The bytes contained in this NSData object.</summary>