Пример #1
0
 public IMapConverterEx AddExtension(IConverterExtension ex)
 {
     //NullPtEx is not checked since this extensions are added once on runup and any exceptions here are programming errors
     foreach (string s in ex.AcceptedGroups)
         _extensions.Add(s, ex);
     return this; //to be able to add multiple extensions in one line: converter.AddExtension(e1).AddExtension(e2);
 }
Пример #2
0
 public IMapConverterEx AddExtension(IConverterExtension ex)
 {
     //NullPtEx is not checked since this extensions are added once on runup and any exceptions here are programming errors
     foreach (string s in ex.AcceptedGroups)
     {
         _extensions.Add(s, ex);
     }
     return(this); //to be able to add multiple extensions in one line: converter.AddExtension(e1).AddExtension(e2);
 }