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
Name | Type | Description |
---|---|---|
Item[UInt64] | Peer | Try to get Peer by id |
Count | Int32 | Count of peers in the collection |
IsReadOnly | Boolean | Indicates whether elements can be added or removed from the collection |
Public Methods
Name | Description |
---|---|
Add | Add a peer to the collection |
Clear | Free and empty the collection |
Contains | Determines whether the peer by id is in the collection |
CopyTo | Copies peers of the collection to an array |
Equals | Determines whether the peers are equal |
GetEnumerator | Get enumerator for iteration |
GetHashCode | Default GetHashCode |
Remove | Remove a peer by id from the collection |
System.Collections.IEnumerable.GetEnumerator |