public void UnRegister(IDocProc docProcObj) { List <string> extList = docProcObj.GetSupportExt(); foreach (string ext in extList) { if (dicDocType.ContainsKey(ext)) { dicDocType.Remove(ext); } } }
public void Register(IDocProc docProcObj) { List <string> extList = docProcObj.GetSupportExt(); foreach (string ext in extList) { if (!ext.StartsWith(".")) { continue; } dicDocType[ext] = docProcObj; } }