Is there some way that I can have a method in a Dictionary? - C#