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

@@ -3,56 +3,24 @@ namespace SabreTools.Models.Hashfile
/// <remarks>Hashfiles can only contain one type of hash at a time</remarks>
public class Hashfile
{
#if NET48
public SFV[] SFV { get; set; }
#else
public SFV[]? SFV { get; set; }
#endif
#if NET48
public MD5[] MD5 { get; set; }
#else
public MD5[]? MD5 { get; set; }
#endif
#if NET48
public SHA1[] SHA1 { get; set; }
#else
public SHA1[]? SHA1 { get; set; }
#endif
#if NET48
public SHA256[] SHA256 { get; set; }
#else
public SHA256[]? SHA256 { get; set; }
#endif
#if NET48
public SHA384[] SHA384 { get; set; }
#else
public SHA384[]? SHA384 { get; set; }
#endif
#if NET48
public SHA512[] SHA512 { get; set; }
#else
public SHA512[]? SHA512 { get; set; }
#endif
#if NET48
public SpamSum[] SpamSum { get; set; }
#else
public SpamSum[]? SpamSum { get; set; }
#endif
#region DO NOT USE IN PRODUCTION
/// <remarks>Should be empty</remarks>
#if NET48
public string[] ADDITIONAL_ELEMENTS { get; set; }
#else
public string[]? ADDITIONAL_ELEMENTS { get; set; }
#endif
#endregion
}

View File

@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
public class MD5
{
[Required]
#if NET48
public string Hash { get; set; }
#else
public string? Hash { get; set; }
#endif
[Required]
#if NET48
public string File { get; set; }
#else
public string? File { get; set; }
#endif
}
}

View File

@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
public class SFV
{
[Required]
#if NET48
public string File { get; set; }
#else
public string? File { get; set; }
#endif
[Required]
#if NET48
public string Hash { get; set; }
#else
public string? Hash { get; set; }
#endif
}
}

View File

@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
public class SHA1
{
[Required]
#if NET48
public string Hash { get; set; }
#else
public string? Hash { get; set; }
#endif
[Required]
#if NET48
public string File { get; set; }
#else
public string? File { get; set; }
#endif
}
}

View File

@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
public class SHA256
{
[Required]
#if NET48
public string Hash { get; set; }
#else
public string? Hash { get; set; }
#endif
[Required]
#if NET48
public string File { get; set; }
#else
public string? File { get; set; }
#endif
}
}

View File

@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
public class SHA384
{
[Required]
#if NET48
public string Hash { get; set; }
#else
public string? Hash { get; set; }
#endif
[Required]
#if NET48
public string File { get; set; }
#else
public string? File { get; set; }
#endif
}
}

View File

@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
public class SHA512
{
[Required]
#if NET48
public string Hash { get; set; }
#else
public string? Hash { get; set; }
#endif
[Required]
#if NET48
public string File { get; set; }
#else
public string? File { get; set; }
#endif
}
}

View File

@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
public class SpamSum
{
[Required]
#if NET48
public string Hash { get; set; }
#else
public string? Hash { get; set; }
#endif
[Required]
#if NET48
public string File { get; set; }
#else
public string? File { get; set; }
#endif
}
}