示例#1
0
 public IList <IViewer> this[DecoderFormat index]
 {
     get
     {
         if (!map.ContainsKey(index))
         {
             return(null);
         }
         return(map[index].AsReadOnly());
     }
 }
示例#2
0
        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);
        }
示例#3
0
 private void RegisterViewer(DecoderFormat format, IViewer viewer)
 {
     this.viewers.Add(format, viewer);
 }
示例#4
0
 public IList <IViewer> GetViewers(DecoderFormat format)
 {
     return(viewers[format]);
 }