public IConfigurable Read <T>(ObjectId identity) where T : IConfigurable, new() { int index = ((IPListEntryIdentity)identity).Index; IPFilterRange[] items = this.GetItems(index, this.GetFilterMask <T>(), IPvxAddress.None, 1); if (items != null && items.Length > 0 && items[0].Identity == index) { return(IPListEntry.NewIPListEntry <T>(items[0])); } return(null); }
public IEnumerator <T> GetEnumerator() { IEnumerator <IPFilterRange[]> pages = this.GetPages(); while (pages.MoveNext()) { foreach (IPFilterRange range in pages.Current) { yield return(IPListEntry.NewIPListEntry <T>(range)); } } yield break; }