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

GetBytesFrom() public static method

public static GetBytesFrom ( IAtomCollection collection, ID4 name ) : byte[]
collection IAtomCollection
name ID4
return byte[]
    public static byte[] GetBytesFrom(IAtomCollection collection, ID4 name)
    {
      var atom = collection.FindByName(name);
      byte[] value = null;
      if (atom != null && atom.TryGetBytes(out value)) {
        return value;
      }
      else {
        return null;
      }
    }
AtomCollectionExtensions