Fix nullability warnings

This commit is contained in:
Matt Nadareski
2023-09-10 17:32:03 -04:00
parent ae4c6ed7f7
commit c9481c761c
37 changed files with 1054 additions and 78 deletions

View File

@@ -33,6 +33,9 @@ namespace SabreTools.Serialization.Files
public bool Serialize(T? obj, string? path, string? name = null, string? pubid = null, string? sysid = null, string? subset = null)
#endif
{
if (string.IsNullOrWhiteSpace(path))
return false;
using (var stream = new Streams.XmlFile<T>().Serialize(obj, name, pubid, sysid, subset))
{
if (stream == null)