PeerCollection
Warning
Version 1.1.0 is deprecated and will be removed in the future and is not being supported for new users. Please update to the latest version as soon as possible.
public class PeerCollection : IReadOnlyCollection<Peer>, 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 |