Example #1
0
        public T[] this[string nodeId]
        {
            get
            {
                Check.Require(!string.IsNullOrEmpty(nodeId), "nodeId must not be null or empty");

                T[] items;
                if (identifiedLocatables.ContainsKey(nodeId))
                {
                    System.ComponentModel.BindingList <T> list = identifiedLocatables[nodeId];
                    items = new T[list.Count];
                    list.CopyTo(items, 0);
                }
                else
                {
                    items = new T[] { }
                };
                return(items);
            }
        }