public UdpRawResponseItemModelCollection this[UdpRawResponseItemModel model] { get { UdpRawResponseItemModelCollection collection = null; string key = model.IPAddress; if (!this.ContainsKey(key)) { this.Add(key, (collection = new UdpRawResponseItemModelCollection())); } else { collection = this[key]; } return(collection); } }
public void AddItem(UdpRawResponseItemModel model) { this[model].Add(model); }