From c251c0dff60ab0129fd19d79c7987c858646e120 Mon Sep 17 00:00:00 2001 From: Wayfarer Date: Mon, 4 Dec 2023 10:31:22 +0100 Subject: [PATCH] Remove Dependancy --- Serializer/Serialize.cs | 5 ++--- Serializer/Serializer.csproj | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Serializer/Serialize.cs b/Serializer/Serialize.cs index 3c414bc0..4fdde98b 100644 --- a/Serializer/Serialize.cs +++ b/Serializer/Serialize.cs @@ -15,7 +15,6 @@ using System.Linq; using System.Xml; using System.Xml.Serialization; -using ExtendedSystemObjects; using FileHandler; namespace Serializer @@ -138,7 +137,7 @@ public static void SaveDctObjectToXml(Dictionary dct FileHandleCreate.CreateFolder(folder); //check if file is empty, if empty return - if (dct.IsNullOrEmpty()) + if (dct == null || dct.Count == 0) { throw new ArgumentException(SerialResources.ErrorSerializerEmpty); } @@ -183,7 +182,7 @@ private static string Handle(this T obj) private static void SerializeDictionary(Dictionary dct, string path) { //check if file is empty, if empty return - if (dct.IsNullOrEmpty()) + if (dct == null || dct.Count == 0) { throw new ArgumentException(SerialResources.ErrorSerializerEmpty); } diff --git a/Serializer/Serializer.csproj b/Serializer/Serializer.csproj index 548e4564..cb0f6a00 100644 --- a/Serializer/Serializer.csproj +++ b/Serializer/Serializer.csproj @@ -9,7 +9,6 @@ -