Fix WebHeaderCollection.cs

This commit is contained in:
sta 2013-09-07 17:40:03 +09:00
parent a01e7cb24d
commit 0eb8813274

View File

@ -283,11 +283,11 @@ namespace WebSocketSharp.Net
state = (HttpHeaderType) serializationInfo.GetInt32 ("State");
int count = serializationInfo.GetInt32 ("Count");
count.Times (i => {
for (int i = 0; i < count; i++) {
base.Add (
serializationInfo.GetString (i.ToString ()),
serializationInfo.GetString ((count + i).ToString ()));
});
}
} catch (SerializationException ex) {
throw new ArgumentException (ex.Message, "serializationInfo", ex);
}