/// <summary> /// <para> /// Adds the contents of another <see cref="xpidea.neuro.net.NeuroLinkCollection" /> to the end of the collection. /// </para> /// </summary> /// <param name="value"> /// A <see cref="xpidea.neuro.net.NeuroLinkCollection" /> containing the objects to add to the collection. /// </param> /// <seealso cref="xpidea.neuro.net.NeuroLinkCollection.Add" /> public void AddRange(NeuroLinkCollection value) { for (var i = 0; (i < value.Count); i = (i + 1)) { Add(value[i]); } }
/// <summary> /// Constructor. /// </summary> public NeuroNode() { InLinks = new NeuroLinkCollection(); outLinks = new NeuroLinkCollection(); }
/// <summary> /// Constructor. /// </summary> /// <param name="mappings">Collection to be enumerated.</param> public CustomNeuroLinkEnumerator(NeuroLinkCollection mappings) { temp = mappings; baseEnumerator = temp.GetEnumerator(); }
/// <summary> /// <para> /// Initializes a new instance of <see cref='xpidea.neuro.net.NeuroLinkCollection' /> based on another /// <see cref='xpidea.neuro.net.NeuroLinkCollection' />. /// </para> /// </summary> /// <param name='value'> /// A <see cref='xpidea.neuro.net.NeuroLinkCollection' /> from which the contents are copied /// </param> public NeuroLinkCollection(NeuroLinkCollection value) { AddRange(value); }