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

C#

 
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 
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 
iprasad007 wrote:
P.S. BTW ur blog is good


*blush* thanks. I need to post something on it tho.


iprasad007 wrote:
So in first case I need to code same Business Logic twice, or is there any standard method to write the function once and prototyping it many times ?


Only ever code your business logic once. Like this

int SortStuff(SortBy sortBy, SortOrder sortOrder
{
// lots of sorting code
}

int SortStuff(SortBy sortBy)
{
return SortBy(sortBy, SortOrder.Ascending);
}

Note, the enums in this method are made up to make the point.

iprasad007 wrote:
And now about my second question, sorry really I didant got what shud I do when I need to call a function or set a property by softcoding such as CallByName does in VB.NET.


Why would you want to do such a thing ? I think it sucks, I don't see how that method is in any way validating that the method in question exists. If you want to discover methods and call them, you need to use reflection ( google reflection C# and you'll see it's a complex subject, but it's exactly what you need here ).

Worst case scenario, you can import the VisualBasic dll/namespace into yuor C# app and call the old VB methods, but ideally you shouldn't do that, even if you're using VB.


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

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 
AnswerRe: Loose HTML -> XHTML.NET component Pin
Nader Elshehabi23-Aug-06 17:36
Nader Elshehabi23-Aug-06 17:36 
GeneralRe: Loose HTML -> XHTML.NET component Pin
Chris Maunder23-Aug-06 17:44
cofounderChris Maunder23-Aug-06 17:44 

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.