We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5eedbe commit 02b20bdCopy full SHA for 02b20bd
ShapeEngine/Serialization/XmlStructSerializer.cs
@@ -144,7 +144,7 @@ public List<T> Deserialize(List<string> xmls)
144
/// </remarks>
145
public static string Serialize<TS>(TS instance) where TS : struct
146
{
147
- var serializer = new XmlSerializer(typeof(T));
+ var serializer = new XmlSerializer(typeof(TS));
148
var ns = new XmlSerializerNamespaces();
149
ns.Add(string.Empty, string.Empty); // no xmlns attribute
150
0 commit comments