You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.
I've got an application where i serilaize a struct with an array of Coordinates. Here is a simple example.
[Serializable]
public struct CoordStruct
{
public Coordinate[] Coordinates;
public CoordStruct(Coordinate[] coordinates)
{
Coordinates = coordinates;
}
}
[Test]
public void TestSerialize()
{
var coordStruct = new CoordStruct(new Coordinate[] { new Coordinate(1.0, 2.0, 3.0), new Coordinate(4.0, 5.0, 6.0) });
var serializer = new System.Xml.Serialization.XmlSerializer(typeof(CoordStruct));
var writer = new System.IO.StreamWriter(@"C:\Temp\Test.xml", false);
serializer.Serialize(writer, coordStruct);
writer.Close();
}
If i run this i get stuck in an infinite loop with a output like below.
The problem is that System.Xml.Serialization assembly is only available from v4.5 so it wont build with the rest of the frameworks.
I can create a pull request but i need som help how to approach this.
The text was updated successfully, but these errors were encountered:
I've got an application where i serilaize a struct with an array of Coordinates. Here is a simple example.
If i run this i get stuck in an infinite loop with a output like below.
I have tested to change Coordinate.cs
Line 134
Then i get this XML
The problem is that System.Xml.Serialization assembly is only available from v4.5 so it wont build with the rest of the frameworks.
I can create a pull request but i need som help how to approach this.
The text was updated successfully, but these errors were encountered: