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; } }