Inferring arguments to a method - C#