public IList <IViewer> this[DecoderFormat index] { get { if (!map.ContainsKey(index)) { return(null); } return(map[index].AsReadOnly()); } }
public void Add(DecoderFormat format, IViewer viewer) { List <IViewer> viewers; if (map.ContainsKey(format)) { viewers = map[format]; } else { viewers = new List <IViewer>(); map.Add(format, viewers); } viewers.Add(viewer); }
private void RegisterViewer(DecoderFormat format, IViewer viewer) { this.viewers.Add(format, viewer); }
public IList <IViewer> GetViewers(DecoderFormat format) { return(viewers[format]); }