Skip to content

Commit

Permalink
Correct the count so we deserialize properly
Browse files Browse the repository at this point in the history
  • Loading branch information
nealef committed Dec 19, 2012
1 parent 9ded66c commit 2d91700
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public virtual void GetObjectData (SerializationInfo info, StreamingContext cont
info.AddValue("Comparer", comparer, typeof(IEqualityComparer<T>));
info.AddValue("Capacity", (table == null) ? 0 : table.Length);
if (table != null) {
T[] tableArray = new T[table.Length];
T[] tableArray = new T[count];
CopyTo(tableArray);
info.AddValue("Elements", tableArray, typeof(T[]));
}
Expand Down

0 comments on commit 2d91700

Please sign in to comment.