public void ChangeConverter <T>(T converter) where T : IObjectConverter { dynamic oldConverter = ByteConverters.Where(x => x.Type == converter.Type).FirstOrDefault(); if (oldConverter != null) { ByteConverters.Remove(oldConverter); } AddConverter(converter); }