Can Resharper auto generate overloads from methods with optional parameters?

The title says it all. I'm hoping for a solution as follows.

Can we take this

Public Sub mySub(Optional Byval item As String = "I'm Optional")
    ' Do some processing
End Sub



and turn it into this automagically

Public Function mySub(Byval item As String)
    Return item
End Sub

Public Function mySub()
    Return mySub("I'm Optional")
End Function



I just like the feel of overloads instead of optional parameters. And, it gets more complicated when you have 5 or 6 different options that all need to be accounted for.
2 comments
Comment actions Permalink

Hello Chase
     There's no such functionality yet. You're welcome to put a feature request through http://youtrack.jetbrains.net/issues/RSRP. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.