How to write a method having multiple input and output parameters in C#?
Are you looking for information on Onclick event? Want to know how to write a method having multiple input and output parameters in C#? Read this thread to learn more about Onclick event with examples.
I wanted to create a method in which I can pass subject marks as input para and to return total of all subject and percentage.How to do that?
// Onclick event of button
// call add(txtphysic.Text,txtchemistry.Text,txtBiology.Text)
// public void Add(int physics,int chemistry,int bio)
int Total = physic+chemistry+bio
float per = Total/6 *100
I know method can have multiple input para having different datatype.Method can return only one para.But if multiple output parameter exist,how to handle that?