internal static List <PngChunk> GetXById(List <PngChunk> list, string id, string innerid) { if (innerid == null) { return(ChunkHelper.FilterList(list, new ChunkPredicateId(id))); } else { return(ChunkHelper.FilterList(list, new ChunkPredicateId2(id, innerid))); } }
/// <summary> /// Finds all chunks "equivalent" to this one /// </summary> /// <param name="chunk"></param> /// <returns>Empty if nothing found</returns> public List <PngChunk> GetEquivalent(PngChunk chunk) { return(ChunkHelper.FilterList(chunks, new ChunkPredicateEquiv(chunk))); }