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.

2
  • 1
    Feel free to provide additional explanation of how this works, or perhaps a link to what you're referring to as "pre-optional-paremeters alternative." Might help future users! :] Commented Oct 21, 2016 at 17:22
  • 1
    Of course the really old way of doing this (pre C# 3 introducing extension methods) was to use method overloading in both the class and interface. If you have access to the class code overloading is probably better than an extension method anyway as it keeps the code in one place. Commented Mar 2, 2017 at 12:34