Click here to Skip to main content
15,887,822 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reflection Pin
Andy Brummer31-Aug-05 18:01
sitebuilderAndy Brummer31-Aug-05 18:01 
QuestionWindows Service arguments Pin
vSoares31-Aug-05 7:01
professionalvSoares31-Aug-05 7:01 
AnswerRe: Windows Service arguments Pin
Mohamad Al Husseiny31-Aug-05 7:18
Mohamad Al Husseiny31-Aug-05 7:18 
QuestionOld C New C# Pin
buggity31-Aug-05 5:51
buggity31-Aug-05 5:51 
AnswerRe: Old C New C# Pin
Mohamad Al Husseiny31-Aug-05 6:17
Mohamad Al Husseiny31-Aug-05 6:17 
Questionmethod Pin
HFreitas31-Aug-05 5:30
HFreitas31-Aug-05 5:30 
AnswerRe: method Pin
Yoyosch31-Aug-05 6:01
Yoyosch31-Aug-05 6:01 
AnswerRe: method Pin
Judah Gabriel Himango31-Aug-05 6:23
sponsorJudah Gabriel Himango31-Aug-05 6:23 
So, let's say you have a set of an unknown number of arguments

void Test(params int[] arguments)
{
}


You could compute the average by using something like

// first, get the sum of all the numbers
int sum = 0;
foreach(int i in arguments)
{
    sum += i;
}

// then, divide the sum by the number of arguments to return the average
int average = sum / arguments.Length;


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Cops & Robbers
Judah Himango


AnswerRe: method Pin
Mohamad Al Husseiny31-Aug-05 6:26
Mohamad Al Husseiny31-Aug-05 6:26 
AnswerRe: method Pin
Guffa31-Aug-05 7:50
Guffa31-Aug-05 7:50 
QuestionUpdating Datagrid Cell Value Pin
Member 156189431-Aug-05 5:20
Member 156189431-Aug-05 5:20 
AnswerRe: Updating Datagrid Cell Value Pin
Alomgir Miah31-Aug-05 6:58
Alomgir Miah31-Aug-05 6:58 
GeneralRe: Updating Datagrid Cell Value Pin
wiseylondon31-Aug-05 22:20
susswiseylondon31-Aug-05 22:20 
GeneralRe: Updating Datagrid Cell Value Pin
mav.northwind31-Aug-05 22:56
mav.northwind31-Aug-05 22:56 
GeneralRe: Updating Datagrid Cell Value Pin
wiseylondon1-Sep-05 0:02
susswiseylondon1-Sep-05 0:02 
Questionc++ codeparser Pin
profoundwhispers31-Aug-05 5:00
profoundwhispers31-Aug-05 5:00 
AnswerRe: c++ codeparser Pin
Alomgir Miah31-Aug-05 6:59
Alomgir Miah31-Aug-05 6:59 
AnswerRe: c++ codeparser Pin
S. Senthil Kumar31-Aug-05 7:48
S. Senthil Kumar31-Aug-05 7:48 
AnswerRe: c++ codeparser Pin
VickyC#3-Sep-05 10:29
VickyC#3-Sep-05 10:29 
QuestionAdd reference problem ? Pin
Kash31-Aug-05 4:41
Kash31-Aug-05 4:41 
AnswerRe: Add reference problem ? Pin
Alomgir Miah31-Aug-05 7:02
Alomgir Miah31-Aug-05 7:02 
GeneralRe: Add reference problem ? Pin
Kash31-Aug-05 7:12
Kash31-Aug-05 7:12 
GeneralRe: Add reference problem ? Pin
Dave Kreskowiak31-Aug-05 10:08
mveDave Kreskowiak31-Aug-05 10:08 
GeneralRe: Add reference problem ? Pin
Kash31-Aug-05 23:34
Kash31-Aug-05 23:34 
GeneralRe: Add reference problem ? Pin
Dave Kreskowiak1-Sep-05 1:33
mveDave Kreskowiak1-Sep-05 1:33 

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.