Reporter | 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.
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.