using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Microsoft.Msagl.Core.Layout; namespace Microsoft.Msagl.Layout.LargeGraphLayout { internal class LgNodeCollection : IList { readonly Func> funcOfNodes; public LgNodeCollection(Func> funcOfLgNodes) { this.funcOfNodes = ()=>funcOfLgNodes().Select(n=>n.GeometryNode); } public IEnumerator GetEnumerator() { return funcOfNodes().GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public void Add(Node item) { throw new NotImplementedException(); } public void Clear() { throw new NotImplementedException(); } public bool Contains(Node item) { throw new NotImplementedException(); } public void CopyTo(Node[] array, int arrayIndex) { throw new NotImplementedException(); } public bool Remove(Node item) { throw new NotImplementedException(); } public int Count { get { return funcOfNodes().Count(); } } public bool IsReadOnly { get; set; } public int IndexOf(Node item) { throw new NotImplementedException(); } public void Insert(int index, Node item) { throw new NotImplementedException(); } public void RemoveAt(int index) { throw new NotImplementedException(); } public Node this[int index] { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } } }