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 02b20bd commit 1f970f9Copy full SHA for 1f970f9
ShapeEngine/Serialization/XmlStructSerializer.cs
@@ -190,7 +190,7 @@ public static List<string> Serialize<TS>(List<TS> instances) where TS : struct
190
/// </remarks>
191
public static TS Deserialize<TS>(string xml) where TS : struct
192
{
193
- var serializer = new XmlSerializer(typeof(T));
+ var serializer = new XmlSerializer(typeof(TS));
194
using var reader = new StringReader(xml);
195
object? result = serializer.Deserialize(reader);
196
0 commit comments