Need help in parameter
Hi all,
Pls somebody explain me with simple example what does the ref, out and params keyword do in c sharp??
And what does actually do postback and autopostaback
method in asp.net with an example??? And
if (!IsPostBack) what does it mean????
Pls somebody clear my above query...
Thanks,
Sumit
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Danatas GerviRank #4,152 · 361 reputationPosted Aug 2, 2009, 4:26 AM EDT
this is the "sintax sugar" - example:
if you needs to send in function parameters the varios number of objects
you must write
void myFunction(object [] manyValues) { // code } { object [] mVal = new object[] {firstVal, secondVal, val45,mess23}; myFunction (mVal); }but, if you will use "params" keyword in
void myFunction(params object [] manyValues) { // code } { // you can call the function more simple myFunction (firstVal, secondVal, val45,mess23); )The array will be created by compiler automatically.
* note - params argument must be last parameter in function.
Bhushan Sahni66 reputationPosted Aug 2, 2009, 8:33 PM EDT