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
hi,
i have some problems to unpack list with null elements.
how to fix it please
public class SimpleItem
{
public int Id;
public SimpleItem()
{
}
}
var items= new List<SimpleItem>();
items.Add(null);
items[0] = new SimpleItem();
var stream = new MemoryStream();
var context = new SerializationContext();
var serializer = context.GetSerializer<SimpleItem>();
serializer .Pack(stream, items);
stream.Position = 0;
var cloneItems = serializer .Unpack(stream);