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
This is kind of difficult to explain, but here is the code to reproduce:
public class TestMain
{
public string TestProperty
{
get
{
return "Test";
}
}
private TestDetail TestDetails { get; set; } = new TestDetail();
}
public class TestDetail
{
public string TestProperty { get; set; } = "TestDetail";
}
Called with the following:
TestMain tr = new TestMain();
SharpSerializer serializer = new SharpSerializer();
serializer.Serialize(tr, "test.bin");
SharpSerializer serializer2 = new SharpSerializer();
serializer2.Deserialize("test.bin");
This will throw the following exception when deserializing:
ArgumentException: Property set method not found.
If you rename the TestProperty on the TestMain class, or the TestDetail class then it will deserialize without issues.
The text was updated successfully, but these errors were encountered:
This is kind of difficult to explain, but here is the code to reproduce:
Called with the following:
This will throw the following exception when deserializing:
ArgumentException: Property set method not found.
If you rename the TestProperty on the TestMain class, or the TestDetail class then it will deserialize without issues.
The text was updated successfully, but these errors were encountered: