PeerCastStation.Core.AtomCollectionExtensions.GetIPAddressFrom C# (CSharp) Method

GetIPAddressFrom() public static method

public static GetIPAddressFrom ( IAtomCollection collection, ID4 name ) : IPAddress
collection IAtomCollection
name ID4
return System.Net.IPAddress
    public static IPAddress GetIPAddressFrom(IAtomCollection collection, ID4 name)
    {
      var atom = collection.FindByName(name);
      IPAddress value = null;
      if (atom != null && atom.TryGetIPv4Address(out value)) {
        return value;
      }
      else {
        return null;
      }
    }
AtomCollectionExtensions