GetPeer() public method

Acts as an iterator, returning the address of each node in the list sequentially. Once all the list has been iterated, null will be returned for each subsequent query.
public GetPeer ( ) : EndPoint
return System.Net.EndPoint
 public void GetPeerAll()
 {
     var seedPeers = new SeedPeers(NetworkParameters.ProdNet());
     for (var i = 0; i < SeedPeers.SeedAddrs.Length; ++i)
     {
         Assert.IsNotNull(seedPeers.GetPeer(), "Failed on index: " + i);
     }
     Assert.IsNull(seedPeers.GetPeer());
 }
 public void GetPeerOne()
 {
     var seedPeers = new SeedPeers(NetworkParameters.ProdNet());
     Assert.IsNotNull(seedPeers.GetPeer());
 }