Support ancient .NET

This commit is contained in:
Matt Nadareski
2023-11-14 14:50:47 -05:00
parent 975eefdc61
commit d7c1e4e83a
29 changed files with 114 additions and 38 deletions

View File

@@ -123,7 +123,7 @@ namespace SabreTools.Serialization
// Distinguish between v1 and v2
int bytesToRead = 112; // v2
if (string.IsNullOrWhiteSpace(addD.Version)
|| addD.Version.StartsWith("3")
|| addD.Version!.StartsWith("3")
|| addD.Version.StartsWith("4.47"))
{
bytesToRead = 44;