We don't do your homework or exercises for you - exercises are set to help
you learn and to cement that new knowledge into
your brain.
So if we just gave you all the suggestions then we would be doing you a disfavour.
You already have some suggestions that you haven't applied yet:
Quote:
move the above to a constructor and inject
Remove repetitive code
create an abstract class
@Paulo-Zemek has given you some other things to look at.
Here are a couple of more lines to look at carefully ... these are just silly mistakes, see if you can work out why:
if (canBeConverted == true)
catch (Exception ex)
{
}