/// <summary> /// Decodes this instance. /// </summary> public override void Decode() { this.Entries = new InboxEntry[this.Stream.ReadVInt()]; for (int i = 0; i < this.Entries.Length; i++) { InboxEntry Entry = new InboxEntry(); Entry.Decode(this.Stream); this.Entries[i] = Entry; } }
public void Add(InboxEntry entry) { if (entry == null) return; lock (this) { _inbox.Add(entry); } }