コード例 #1
0
        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);
        }
コード例 #2
0
            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;
            }