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