mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 19:14:26 +00:00
Use ReadExactly when available in .NET 7 or higher.
This commit is contained in:
@@ -57,7 +57,11 @@ namespace Claunia.PropertyList
|
|||||||
|
|
||||||
using FileStream raf = file.OpenRead();
|
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);
|
raf.Read(Bytes, 0, (int)file.Length);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>The bytes contained in this NSData object.</summary>
|
/// <summary>The bytes contained in this NSData object.</summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user