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 Nov 14, 2022. It is now read-only.
private class LogBook
{
public long Id { get; set; }
public string Name { get; set; }
}
private class LogEntry
{
public long Id { get; set; }
public string Name { get; set; }
}
The following code does not work, do you have any good suggestions?
var log = new LogBook { Id = 1, Name = "abc" };
var bytes = binaryConverter.Serialize(log);
//error occurred
var log2 = binaryConverter.Deserialize<LogEntry>(bytes);
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The following code does not work, do you have any good suggestions?
The text was updated successfully, but these errors were encountered: