예제 #1
0
 public static void register_or_replace_custom_writer(custom_info_writer custom_writer_val)
 {
     create();
     if (writer_table.ContainsKey(custom_writer_val.info_name))
     {
         writer_table.Remove(custom_writer_val.info_name);
     }
     writer_table.Add(custom_writer_val.info_name, custom_writer_val);
 }
예제 #2
0
        public static custom_info_writer get_writer(string info_name)
        {
            create();
            custom_info_writer retval = null;

            if (writer_table.ContainsKey(info_name))
            {
                retval = (custom_info_writer)writer_table[info_name];
            }
            return(retval);
        }