Skip to content

Commit 02b20bd

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 b5eedbe commit 02b20bd

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
@@ -144,7 +144,7 @@ public List<T> Deserialize(List<string> xmls)
144144
/// </remarks>
145145
public static string Serialize<TS>(TS instance) where TS : struct
146146
{
147-
var serializer = new XmlSerializer(typeof(T));
147+
var serializer = new XmlSerializer(typeof(TS));
148148
var ns = new XmlSerializerNamespaces();
149149
ns.Add(string.Empty, string.Empty); // no xmlns attribute
150150

0 commit comments

Comments
 (0)