public void Transform(DcmDataset dataset) { List <DicomTag> remove = new List <DicomTag>(dataset.GetMaskedTags(_mask)); foreach (DicomTag tag in remove) { dataset.Remove(tag); } }