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 @@ -