Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • 1
    The params keyword might make sense if the DoWork method did the same thing with each argument and if each argument was of the same type. Otherwise, the DoWork method would need to check that each argument in the params array was of the correct type - but lets say we have two strings in there and each one was used for a different purpose, how could DoWork ensure that it has the correct one...it would have to assume based on position in the array. All too loose for my liking. I feel @JohnWu's solution is tighter. Commented Mar 30, 2017 at 0:03