Skip to content

Commit 1f970f9

Browse files
SoloByteCopilot
andauthored
Fix: XmlSerializer generic type changed from T to TS
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 02b20bd commit 1f970f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ShapeEngine/Serialization/XmlStructSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public static List<string> Serialize<TS>(List<TS> instances) where TS : struct
190190
/// </remarks>
191191
public static TS Deserialize<TS>(string xml) where TS : struct
192192
{
193-
var serializer = new XmlSerializer(typeof(T));
193+
var serializer = new XmlSerializer(typeof(TS));
194194
using var reader = new StringReader(xml);
195195
object? result = serializer.Deserialize(reader);
196196

0 commit comments

Comments
 (0)