Remove framework gating

This commit is contained in:
Matt Nadareski
2023-11-07 20:57:05 -05:00
parent e582ce8726
commit 1f340bd244
368 changed files with 5 additions and 7413 deletions

View File

@@ -7,11 +7,7 @@ namespace SabreTools.Models.XZP
public uint NameOffset { get; set; }
#if NET48
public string Name { get; set; }
#else
public string? Name { get; set; }
#endif
public uint TimeCreated { get; set; }
}

View File

@@ -9,55 +9,31 @@ namespace SabreTools.Models.XZP
/// <summary>
/// Header data
/// </summary>
#if NET48
public Header Header { get; set; }
#else
public Header? Header { get; set; }
#endif
/// <summary>
/// Directory entries data
/// </summary>
#if NET48
public DirectoryEntry[] DirectoryEntries { get; set; }
#else
public DirectoryEntry?[]? DirectoryEntries { get; set; }
#endif
/// <summary>
/// Preload directory entries data
/// </summary>
#if NET48
public DirectoryEntry[] PreloadDirectoryEntries { get; set; }
#else
public DirectoryEntry?[]? PreloadDirectoryEntries { get; set; }
#endif
/// <summary>
/// Preload directory mappings data
/// </summary>
#if NET48
public DirectoryMapping[] PreloadDirectoryMappings { get; set; }
#else
public DirectoryMapping?[]? PreloadDirectoryMappings { get; set; }
#endif
/// <summary>
/// Directory items data
/// </summary>
#if NET48
public DirectoryItem[] DirectoryItems { get; set; }
#else
public DirectoryItem?[]? DirectoryItems { get; set; }
#endif
/// <summary>
/// Footer data
/// </summary>
#if NET48
public Footer Footer { get; set; }
#else
public Footer? Footer { get; set; }
#endif
}
}

View File

@@ -5,10 +5,6 @@ namespace SabreTools.Models.XZP
{
public uint FileLength { get; set; }
#if NET48
public string Signature { get; set; }
#else
public string? Signature { get; set; }
#endif
}
}

View File

@@ -3,11 +3,7 @@ namespace SabreTools.Models.XZP
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/XZPFile.h"/>
public sealed class Header
{
#if NET48
public string Signature { get; set; }
#else
public string? Signature { get; set; }
#endif
public uint Version { get; set; }