Click here to Skip to main content
16,004,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: simple functional overloading Pin
Trustapple15-Oct-07 21:26
Trustapple15-Oct-07 21:26 
QuestionDataset, relationships and keyref Pin
Sydneycan15-Oct-07 20:23
Sydneycan15-Oct-07 20:23 
Questionsocket programming Pin
cyn815-Oct-07 19:25
cyn815-Oct-07 19:25 
AnswerRe: socket programming Pin
Andrei Ungureanu15-Oct-07 19:58
Andrei Ungureanu15-Oct-07 19:58 
QuestionLicense key of MathML .NET Control. Pin
Tuongnd15-Oct-07 19:01
Tuongnd15-Oct-07 19:01 
AnswerRe: License key of MathML .NET Control. Pin
stancrm15-Oct-07 19:06
stancrm15-Oct-07 19:06 
QuestionFunctions Pin
Trustapple15-Oct-07 18:40
Trustapple15-Oct-07 18:40 
AnswerRe: Functions Pin
Abhijit Jana15-Oct-07 18:59
professionalAbhijit Jana15-Oct-07 18:59 
Your Ans~Big Grin | :-D

Trustapple wrote:
1>what are the different ways to call a function in C#?


Just Write the function name from where you want to call with proper argumnet. suppose , Add(int a,int b) is a function you just call it by
Add(5,6), if its return some value then s=Add(5,6).

You can invoke a function using Deligation also.


Trustapple wrote:
2>how to declare a function with parameters?


int Add(int a,int b)
void AddString(Sring s1,string s2)


Trustapple wrote:
3>how to call a function with parameters?

That i already explain



Trustapple wrote:
4>MOST IMP:how to return a value form a function?


just Simply use return statement

int Add(int a,int b)
{
int c=a+b;
return c;
}




Happy Programming
-----
Abhijit

GeneralRe: Functions Pin
Trustapple15-Oct-07 19:53
Trustapple15-Oct-07 19:53 
GeneralRe: Functions Pin
Abhijit Jana15-Oct-07 20:03
professionalAbhijit Jana15-Oct-07 20:03 
GeneralRe: Functions Pin
Andrei Ungureanu15-Oct-07 20:03
Andrei Ungureanu15-Oct-07 20:03 
GeneralRe: Functions Pin
Trustapple15-Oct-07 20:10
Trustapple15-Oct-07 20:10 
GeneralRe: Functions Pin
Andrei Ungureanu15-Oct-07 20:23
Andrei Ungureanu15-Oct-07 20:23 
GeneralRe: Functions Pin
Trustapple15-Oct-07 20:57
Trustapple15-Oct-07 20:57 
GeneralRe: Functions Pin
Andrei Ungureanu15-Oct-07 21:05
Andrei Ungureanu15-Oct-07 21:05 
QuestionHow to read JavaScript's variables values in webBrowser control using C# Pin
A.Asif15-Oct-07 18:12
A.Asif15-Oct-07 18:12 
AnswerRe: How to read JavaScript's variables values in webBrowser control using C# Pin
Sandeep Kumar15-Oct-07 19:14
Sandeep Kumar15-Oct-07 19:14 
GeneralRe: How to read JavaScript's variables values in webBrowser control using C# Pin
A.Asif16-Oct-07 3:21
A.Asif16-Oct-07 3:21 
GeneralRe: How to read JavaScript's variables values in webBrowser control using C# Pin
Sandeep Kumar16-Oct-07 4:09
Sandeep Kumar16-Oct-07 4:09 
GeneralRe: How to read JavaScript's variables values in webBrowser control using C# Pin
A.Asif16-Oct-07 4:37
A.Asif16-Oct-07 4:37 
QuestionDebug multi threads service Pin
senorAli3315-Oct-07 17:37
senorAli3315-Oct-07 17:37 
AnswerRe: Debug multi threads service Pin
mav.northwind15-Oct-07 19:17
mav.northwind15-Oct-07 19:17 
QuestionLaunch txt file in deafult text editor Pin
Dwayner7915-Oct-07 12:50
Dwayner7915-Oct-07 12:50 
AnswerRe: Launch txt file in deafult text editor Pin
Christian Graus15-Oct-07 12:56
protectorChristian Graus15-Oct-07 12:56 
AnswerRe: Launch txt file in deafult text editor Pin
Luc Pattyn15-Oct-07 12:57
sitebuilderLuc Pattyn15-Oct-07 12:57 

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.