public DcmUnknown GetUN(DicomTag tag) { DcmElement elem = GetElement(tag); if (elem is DcmUnknown) return elem as DcmUnknown; if (elem != null) throw new DicomDataException("Tried to access element with incorrect VR"); return null; }