/// <summary>
 /// Gets the serializer.
 /// </summary>
 /// <param name="config">The current <see cref="ClientConfiguration"/> instance.</param>
 /// <param name="element">The <see cref="SerializerElement"/> that is defined in the App.Config.</param>
 /// <returns>A <see cref="Func{ITypeSerializer}"/> factory for creating <see cref="ITypeSerializer"/> objects.</returns>
 public static Func<ITypeSerializer> GetSerializer(ClientConfiguration config, SerializerElement element)
 {
     var type = Type.GetType(element.Type, true);
     return () => (ITypeSerializer)Activator.CreateInstance(type);
 }
 /// <summary>
 /// Gets the serializer.
 /// </summary>
 /// <param name="config">The current <see cref="ClientConfiguration"/> instance.</param>
 /// <param name="element">The <see cref="SerializerElement"/> that is defined in the App.Config.</param>
 /// <returns>A <see cref="Func{ITypeSerializer}"/> factory for creating <see cref="ITypeSerializer"/> objects.</returns>
 public static Func<ITypeSerializer> GetSerializer(ClientConfiguration config, SerializerElement element)
 {
     return GetSerializer(element.Type);
 }