/// <summary>
 /// Serializes the object
 /// </summary>
 /// <param name="Data">Data to serialize</param>
 /// <returns>The serialized data</returns>
 private static string Serialize(PluginList Data)
 {
     if (Data == null)
     {
         return(null);
     }
     using (MemoryStream Stream = new MemoryStream())
     {
         var Serializer = new XmlSerializer(typeof(PluginList));
         Serializer.Serialize(Stream, Data);
         Stream.Flush();
         return(Encoding.UTF8.GetString(Stream.GetBuffer(), 0, (int)Stream.Position));
     }
 }
 /// <summary>
 /// Serializes the object
 /// </summary>
 /// <param name="Data">Data to serialize</param>
 /// <returns>The serialized data</returns>
 private static string Serialize(PluginList Data)
 {
     if (Data == null)
         return null;
     using (MemoryStream Stream = new MemoryStream())
     {
         var Serializer = new XmlSerializer(typeof(PluginList));
         Serializer.Serialize(Stream, Data);
         Stream.Flush();
         return Encoding.UTF8.GetString(Stream.GetBuffer(), 0, (int)Stream.Position);
     }
 }