public static FilterList ( List |
||
list | List |
|
predicateKeep | ChunkPredicate | |
return | List |
internal static List <PngChunk> GetXById(List <PngChunk> list, string id, string innerid) { if (innerid == null) { return(ChunkHelper.FilterList(list, new ChunkPredicateId(id))); } 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))); }