Converting from a string to a generic method invocation - C#