Show / Hide Table of Contents

    Class NodeLinkCollection

    Represents a read-only collection of links. To add a link to a network see Links.

    Inheritance
    System.Object
    NodeLinkCollection
    Implements
    System.Collections.Generic.IList<Link>
    System.Collections.Generic.ICollection<Link>
    System.Collections.Generic.IEnumerable<Link>
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.Collections.Specialized.INotifyCollectionChanged
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: BayesServer
    Assembly: BayesServer.dll
    Syntax
    public sealed class NodeLinkCollection : IList<Link>, ICollection<Link>, IEnumerable<Link>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
    Remarks

    Links, LinksIn and LinksOut are instances of this class.

    Properties

    Count

    Gets the number of elements contained in the collection.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Item[Int32]

    Gets the Link object at the specified index.

    Declaration
    public Link this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the Link to find.

    Property Value
    Type Description
    Link

    A Link.

    Node

    Gets the Node to which the collection belongs to.

    Declaration
    public Node Node { get; }
    Property Value
    Type Description
    Node

    The Node that the collection belongs to.

    Methods

    Contains(Link)

    Determines whether a Link is in the collection.

    Declaration
    public bool Contains(Link item)
    Parameters
    Type Name Description
    Link item

    The Link to locate in the collection. The value can be null.

    Returns
    Type Description
    System.Boolean

    true if item is found in the collection; otherwise, false.

    CopyTo(Link[], Int32)

    Copies all the items in the collection into the buffer array starting at the specified destination arrayIndex.

    Declaration
    public void CopyTo(Link[] array, int arrayIndex)
    Parameters
    Type Name Description
    Link[] array

    A buffer whose values will be overwritten.

    System.Int32 arrayIndex

    The destination index at which to start copying.

    GetEnumerator()

    Returns an enumerator that iterates through the NodeLinkCollection.

    Declaration
    public IEnumerator<Link> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<Link>

    An System.Collections.Generic.IEnumerator<T> for the entire NodeLinkCollection.

    IndexOf(Link)

    Searches for the specified object and returns the zero-based index of the Link within the entire collection, or -1 if not found.

    Declaration
    public int IndexOf(Link item)
    Parameters
    Type Name Description
    Link item

    The Link to locate in the collection. The value can be null.

    Returns
    Type Description
    System.Int32

    The zero-based index of the Link within the entire collection, if found; otherwise, –1.

    Events

    CollectionChanged

    Declaration
    public event NotifyCollectionChangedEventHandler CollectionChanged
    Event Type
    Type Description
    System.Collections.Specialized.NotifyCollectionChangedEventHandler

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Explicit Interface Implementations

    IList<Link>.RemoveAt(Int32)

    Not supported. Collection is read only.

    Declaration
    void IList<Link>.RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    ICollection.CopyTo(Array, Int32)

    Declaration
    void ICollection.CopyTo(Array array, int index)
    Parameters
    Type Name Description
    System.Array array
    System.Int32 index

    ICollection.Count

    Declaration
    int ICollection.Count { get; }
    Returns
    Type Description
    System.Int32

    ICollection.IsSynchronized

    Declaration
    bool ICollection.IsSynchronized { get; }
    Returns
    Type Description
    System.Boolean

    ICollection.SyncRoot

    Declaration
    object ICollection.SyncRoot { get; }
    Returns
    Type Description
    System.Object

    IEnumerable.GetEnumerator()

    Returns an enumerator that iterates through the NodeLinkCollection.

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    An System.Collections.IEnumerator for the entire NodeLinkCollection.

    IList.Add(Object)

    Declaration
    int IList.Add(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    System.Int32

    IList.Clear()

    Declaration
    void IList.Clear()

    IList.Contains(Object)

    Declaration
    bool IList.Contains(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    System.Boolean

    IList.IndexOf(Object)

    Declaration
    int IList.IndexOf(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    System.Int32

    IList.Insert(Int32, Object)

    Declaration
    void IList.Insert(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value

    IList.IsFixedSize

    Declaration
    bool IList.IsFixedSize { get; }
    Returns
    Type Description
    System.Boolean

    IList.IsReadOnly

    Declaration
    bool IList.IsReadOnly { get; }
    Returns
    Type Description
    System.Boolean

    IList.Item[Int32]

    Declaration
    object IList.this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Object

    IList.Remove(Object)

    Declaration
    void IList.Remove(object value)
    Parameters
    Type Name Description
    System.Object value

    IList.RemoveAt(Int32)

    Declaration
    void IList.RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Implements

    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.Collections.Specialized.INotifyCollectionChanged
    System.ComponentModel.INotifyPropertyChanged
    Back to top Copyright Bayes Server Ltd. All rights Reserved.