Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
GeneralRe: Optional parameters Pin
Nick Parker4-Sep-02 9:44
protectorNick Parker4-Sep-02 9:44 
GeneralRe: Optional parameters Pin
Eric Gunnerson (msft)4-Sep-02 10:10
Eric Gunnerson (msft)4-Sep-02 10:10 
GeneralRe: Optional parameters Pin
leppie4-Sep-02 10:18
leppie4-Sep-02 10:18 
GeneralRe: Optional parameters Pin
David Stone4-Sep-02 12:22
sitebuilderDavid Stone4-Sep-02 12:22 
GeneralRe: Optional parameters Pin
Paul Riley4-Sep-02 12:21
Paul Riley4-Sep-02 12:21 
GeneralRe: Optional parameters Pin
Nick Parker5-Sep-02 2:59
protectorNick Parker5-Sep-02 2:59 
GeneralRe: Optional parameters Pin
leppie4-Sep-02 13:20
leppie4-Sep-02 13:20 
GeneralRe: Optional parameters Pin
Paul Riley5-Sep-02 2:10
Paul Riley5-Sep-02 2:10 
leppie wrote:
void Function(string name, int size, Color color, params object[] optionalparams){}

Ha! Yeah. 2 minutes to write the function (assuming you dont feel a need to validate the parameters) and then when you want to use it six months down the line you have to go back and figure out what constitutes a valid argument list.

I'd have to be pretty desperate before I resorted to that Smile | :)

What I'm doing now is squeezing the overloads into a region and hiding them away (it's actually the pile of useless code to hunt through that bothers me more than writing it).

Paul
GeneralRe: Optional parameters Pin
leppie5-Sep-02 2:24
leppie5-Sep-02 2:24 
GeneralRe: Optional parameters Pin
Nick Parker5-Sep-02 3:02
protectorNick Parker5-Sep-02 3:02 
GeneralRe: Optional parameters Pin
Paul Riley5-Sep-02 3:54
Paul Riley5-Sep-02 3:54 
GeneralRe: Optional parameters Pin
leppie4-Sep-02 10:14
leppie4-Sep-02 10:14 
GeneralRe: Optional parameters Pin
David Stone4-Sep-02 12:24
sitebuilderDavid Stone4-Sep-02 12:24 
GeneralRe: Optional parameters Pin
Nnamdi Onyeyiri4-Sep-02 9:53
Nnamdi Onyeyiri4-Sep-02 9:53 
GeneralRe: Optional parameters Pin
leppie4-Sep-02 11:11
leppie4-Sep-02 11:11 
GeneralRe: Optional parameters Pin
Nnamdi Onyeyiri4-Sep-02 22:28
Nnamdi Onyeyiri4-Sep-02 22:28 
GeneralRemote Directory Information Pin
4-Sep-02 4:38
suss4-Sep-02 4:38 
GeneralRe: Remote Directory Information Pin
Nnamdi Onyeyiri4-Sep-02 8:38
Nnamdi Onyeyiri4-Sep-02 8:38 
GeneralRe: Remote Directory Information Pin
leppie4-Sep-02 9:42
leppie4-Sep-02 9:42 
GeneralRe: Remote Directory Information Pin
D Shen5-Sep-02 9:18
D Shen5-Sep-02 9:18 
GeneralAssembly.LoadFrom using a network share... Pin
Ryan Cromwell4-Sep-02 2:14
Ryan Cromwell4-Sep-02 2:14 
GeneralRe: Assembly.LoadFrom using a network share... Pin
Philip Fitzsimons4-Sep-02 2:21
Philip Fitzsimons4-Sep-02 2:21 
GeneralRe: Assembly.LoadFrom using a network share... Pin
Ryan Cromwell4-Sep-02 3:07
Ryan Cromwell4-Sep-02 3:07 
GeneralRe: Assembly.LoadFrom using a network share... Pin
Philip Fitzsimons4-Sep-02 3:09
Philip Fitzsimons4-Sep-02 3:09 
GeneralRe: Assembly.LoadFrom using a network share... Pin
Ryan Cromwell5-Sep-02 2:37
Ryan Cromwell5-Sep-02 2:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.