Click here to Skip to main content
15,902,445 members
Home / Discussions / C#
   

C#

 
JokeRe: Display a on the datagrid Pin
Not Active24-Aug-06 2:28
mentorNot Active24-Aug-06 2:28 
GeneralRe: Display a on the datagrid Pin
Muammar©10-Sep-06 0:31
Muammar©10-Sep-06 0:31 
Questionno mails in mailroot when i send the mail Pin
ayyp23-Aug-06 21:09
ayyp23-Aug-06 21:09 
AnswerRe: no mails in mailroot when i send the mail Pin
CooperWu24-Aug-06 0:04
CooperWu24-Aug-06 0:04 
GeneralRe: no mails in mailroot when i send the mail Pin
ayyp24-Aug-06 0:25
ayyp24-Aug-06 0:25 
GeneralRe: no mails in mailroot when i send the mail Pin
CooperWu24-Aug-06 0:37
CooperWu24-Aug-06 0:37 
QuestionOptional Prameter Pin
iprasad00723-Aug-06 20:44
iprasad00723-Aug-06 20:44 
AnswerRe: Optional Prameter Pin
Christian Graus23-Aug-06 21:12
protectorChristian Graus23-Aug-06 21:12 
iprasad007 wrote:
How to create a function with optional parameters ?


And in a matter of moments, you've found the one thing that VB.NET has and C# does not. I have complained to the C# team, they don't care.

So, you need to create two methods, one with the extra param, and one that calls the extra param version with the default. Sucks, I know.

iprasad007 wrote:
Is there any function exist like "CallByName" in VB.NET ?


Depends, what does it do ?

Just googled. VB.NET still does that ? That sucks. You should stay clear of anything in the VisualBasic namespace, that's .NET pollution right there. You can use reflection to find methods on an object, perhaps that will do what you need here.

Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

QuestionRe: Optional Prameter Pin
iprasad00723-Aug-06 23:13
iprasad00723-Aug-06 23:13 
AnswerRe: Optional Prameter Pin
Christian Graus23-Aug-06 23:19
protectorChristian Graus23-Aug-06 23:19 
GeneralRe: Optional Prameter Pin
iprasad00723-Aug-06 23:42
iprasad00723-Aug-06 23:42 
GeneralRe: Optional Prameter Pin
Christian Graus24-Aug-06 0:16
protectorChristian Graus24-Aug-06 0:16 
GeneralRe: Optional Prameter [modified] Pin
iprasad00724-Aug-06 0:36
iprasad00724-Aug-06 0:36 
GeneralRe: Optional Prameter Pin
Martin#24-Aug-06 1:06
Martin#24-Aug-06 1:06 
GeneralRe: Optional Prameter [modified] Pin
Christian Graus24-Aug-06 1:11
protectorChristian Graus24-Aug-06 1:11 
GeneralRe: Optional Prameter Pin
iprasad00724-Aug-06 2:01
iprasad00724-Aug-06 2:01 
QuestionVB6 TO C# Pin
M Riaz Bashir23-Aug-06 19:39
M Riaz Bashir23-Aug-06 19:39 
AnswerRe: VB6 TO C# Pin
iprasad00723-Aug-06 20:03
iprasad00723-Aug-06 20:03 
AnswerRe: VB6 TO C# Pin
Christian Graus23-Aug-06 21:09
protectorChristian Graus23-Aug-06 21:09 
GeneralRe: VB6 TO C# Pin
iprasad00723-Aug-06 23:15
iprasad00723-Aug-06 23:15 
QuestionWhere is the focus moving to? [modified] Pin
philxan23-Aug-06 17:42
philxan23-Aug-06 17:42 
AnswerRe: Where is the focus moving to? Pin
stancrm23-Aug-06 18:23
stancrm23-Aug-06 18:23 
AnswerRe: Where is the focus moving to? Pin
Nader Elshehabi23-Aug-06 18:38
Nader Elshehabi23-Aug-06 18:38 
GeneralRe: Where is the focus moving to? Pin
philxan23-Aug-06 19:54
philxan23-Aug-06 19:54 
QuestionLoose HTML -> XHTML.NET component Pin
Chris Maunder23-Aug-06 17:02
cofounderChris Maunder23-Aug-06 17:02 

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.