Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-288699: [Feature Request]: Can Resharper auto generate overloads from methods with optional parameters?

$
0
0
Reporter Chase Florell (Chase.Florell) Chase Florell (Chase.Florell)
Created Mar 1, 2012 9:15:19 PM
Updated Mar 1, 2012 9:18:59 PM
Priority Normal
Type Feature
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
The title says it all. I'm hoping for a solution as follows.

Can we take this

public string myFunction(string item = "I'm Optional")
{
return item;
}

and turn it into this automagically

public string myFunction(string item)
{
return item;
}

public string myFunction()
{
return mySub("I'm Optional");
}


I just like the feel of overloads instead of optional parameters. But, it gets more complicated when you have 5 or 6 different "Optional"'s that all need to be accounted for.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>