Reputation: 6544
I have a newbie question: How do I invoke the following method:
public void Download(MyEnum aStrategy, params string [] strings)
I have tried:
Download(MyEnum.All, new string [] {"a", "b", "c"})
but have not had any success.
Upvotes: 0
Views: 103
Reputation: 23472
Try:
Download(MyEnum.All, "a", "b", "c")
Your code should work to, but the above is "more correct".
Upvotes: 1