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); }
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); }