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
I am using Hyperion 0.9.15 and testing below scenario.
Created POCO object and did serialization and stored stream in file stream. Then I have added another new property and try to
de-serialize it where I am getting InvalidCastException. I tried with versiontolerance enabled and disabled having same issue.
Is this problem may be related to Hyperion or something i'm missing?. Guide me how to solve my issue if I am missing any configuration.
----------------------------POCO--------------------
public class Employee
{
public string Name { get; set; }
public double Salary { get; set; }
}
------------------------Serialize to File---------------------------------
public void FileSerialize()
{
var employee = new Employee
{
Name = "Foo",
Salary = 2500.0
};
var fileName = @"C:\FromDDrive\words.txt";
using FileStream fs = File.OpenWrite(fileName);
_serializer.Serialize(employee, fs);
Assert.NotNull(fs);
}
I am using Hyperion 0.9.15 and testing below scenario.
Created POCO object and did serialization and stored stream in file stream. Then I have added another new property and try to
de-serialize it where I am getting InvalidCastException. I tried with versiontolerance enabled and disabled having same issue.
Is this problem may be related to Hyperion or something i'm missing?. Guide me how to solve my issue if I am missing any configuration.
----------------------------POCO--------------------
------------------------Serialize to File---------------------------------
-----------------------------Updated POCO----------------
-----------------De-serialize------------------------------------
The text was updated successfully, but these errors were encountered: