Click here to Skip to main content
15,891,725 members
Home / Discussions / C#
   

C#

 
GeneralRe: Default or optional Parameters in C# Pin
Spectre_00120-Dec-10 2:36
Spectre_00120-Dec-10 2:36 
AnswerRe: Default or optional Parameters in C# Pin
Hari Om Prakash Sharma16-Dec-10 3:03
Hari Om Prakash Sharma16-Dec-10 3:03 
AnswerRe: Default or optional Parameters in C# Pin
hground16-Dec-10 3:30
hground16-Dec-10 3:30 
AnswerRe: Default or optional Parameters in C# Pin
jlafay16-Dec-10 4:09
jlafay16-Dec-10 4:09 
AnswerRe: Default or optional Parameters in C# Pin
grgran16-Dec-10 4:58
grgran16-Dec-10 4:58 
GeneralRe: Default or optional Parameters in C# Pin
PIEBALDconsult16-Dec-10 14:26
mvePIEBALDconsult16-Dec-10 14:26 
AnswerRe: Default or optional Parameters in C# Pin
Paladin200016-Dec-10 5:08
Paladin200016-Dec-10 5:08 
AnswerRe: Default or optional Parameters in C# Pin
Jeff Connelly17-Dec-10 5:57
Jeff Connelly17-Dec-10 5:57 
Yes, the C# lost that feature from "primitive" C++. You get it back with interest in C# 4.0 - not only can you provide default parameter values, you can also name your parameters and provide them in any order you want.

For example, in C++ you had to order your function parameters correctly, so that the ones with default values came at the end.

void foo(int i = 1, int j = 0, int k)

This didn't work, because what does the call foo(1, 2) mean?

In C# 4.0, you can do that.

foo(k: 0, j: 1)

So add "named" parameters (arguments) to the feature, which was not available in C++.
QuestionHashtable within Hashtable Pin
michael_jhons15-Dec-10 5:47
michael_jhons15-Dec-10 5:47 
AnswerRe: Hashtable within Hashtable Pin
Abhinav S15-Dec-10 5:56
Abhinav S15-Dec-10 5:56 
GeneralRe: Hashtable within Hashtable Pin
michael_jhons15-Dec-10 10:12
michael_jhons15-Dec-10 10:12 
AnswerRe: Hashtable within Hashtable Pin
_Erik_15-Dec-10 5:59
_Erik_15-Dec-10 5:59 
Questiondatatable to object array Pin
Ramkithepower15-Dec-10 5:00
Ramkithepower15-Dec-10 5:00 
AnswerRe: datatable to object array [modified] Pin
_Erik_15-Dec-10 5:28
_Erik_15-Dec-10 5:28 
AnswerRe: datatable to object array Pin
PIEBALDconsult15-Dec-10 7:22
mvePIEBALDconsult15-Dec-10 7:22 
QuestionBindingSource.Filter expression as not equal!! Pin
Hussam Fattahi15-Dec-10 4:29
Hussam Fattahi15-Dec-10 4:29 
AnswerRe: BindingSource.Filter expression as not equal!! Pin
Luc Pattyn15-Dec-10 4:36
sitebuilderLuc Pattyn15-Dec-10 4:36 
GeneralRe: BindingSource.Filter expression as not equal!! Pin
Hussam Fattahi16-Dec-10 10:45
Hussam Fattahi16-Dec-10 10:45 
GeneralRe: BindingSource.Filter expression as not equal!! Pin
Luc Pattyn16-Dec-10 10:51
sitebuilderLuc Pattyn16-Dec-10 10:51 
GeneralRe: BindingSource.Filter expression as not equal!! Pin
Hussam Fattahi16-Dec-10 10:58
Hussam Fattahi16-Dec-10 10:58 
AnswerRe: BindingSource.Filter expression as not equal!! Pin
Luc Pattyn16-Dec-10 11:01
sitebuilderLuc Pattyn16-Dec-10 11:01 
Questionhelp with inport csv file to my C# program Pin
goldsoft15-Dec-10 0:09
goldsoft15-Dec-10 0:09 
AnswerRe: help with inport csv file to my C# program Pin
Goutam Patra15-Dec-10 0:21
professionalGoutam Patra15-Dec-10 0:21 
GeneralRe: help with inport csv file to my C# program Pin
PIEBALDconsult15-Dec-10 2:13
mvePIEBALDconsult15-Dec-10 2:13 
GeneralRe: help with inport csv file to my C# program Pin
Luc Pattyn15-Dec-10 2:48
sitebuilderLuc Pattyn15-Dec-10 2:48 

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.