Brunet.Applications.IPAddresses.GetEnumerator C# (CSharp) Метод

GetEnumerator() публичный Метод

To be of type IEnumerable, here is the Enumerator. This enumerates through the IList given by GetIPAddresses
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator
    public IEnumerator GetEnumerator() {
      //IList all_interfaces = GetAddresses();
      foreach(Hashtable ht in AllInterfaces) {
        if( ht.ContainsKey("interface") && ht.ContainsKey("inet addr") ) {
          string iface = (string)ht["interface"];
          if( _ints == null || _ints.Count == 0 ) {
            yield return IPAddress.Parse( (string)ht["inet addr"] );
          }
          else if( _ints.Contains(iface) ) {
            yield return IPAddress.Parse( (string)ht["inet addr"] );
          }
        }
      }
    }