Developer Documentation
Our new developer documentation is now available. Please check it out!

PeerCollection

public class PeerCollection : IReadOnlyCollection<Peer>, IEnumerable<Peer>, IEnumerable, IEqualityComparer<Peer>

Intern peer dictionary

Properties

NameTypeDescription
Item[UInt64]PeerTry to get Peer by id
CountInt32Count of peers in the collection
IsReadOnlyBooleanIndicates whether elements can be added or removed from the collection

Public Methods

NameDescription
AddAdd a peer to the collection
ClearFree and empty the collection
ContainsDetermines whether the peer by id is in the collection
CopyToCopies peers of the collection to an array
EqualsDetermines whether the peers are equal
GetEnumeratorGet enumerator for iteration
GetHashCodeDefault GetHashCode
RemoveRemove a peer by id from the collection
System.Collections.IEnumerable.GetEnumerator