Add nullable context to SabreTools.Core

This commit is contained in:
Matt Nadareski
2023-08-12 00:55:41 -04:00
parent 12ee5895f9
commit ce6a64d4cd
18 changed files with 362 additions and 315 deletions

View File

@@ -32,10 +32,8 @@ namespace SabreTools.Models.Internal
string? asString = Read<string>(key);
return asString?.ToLowerInvariant() switch
{
"true" => true,
"yes" => true,
"false" => false,
"no" => false,
"true" or "yes" => true,
"false" or "no" => false,
_ => null,
};
}