Click here to Skip to main content
15,908,444 members
Home / Discussions / C#
   

C#

 
GeneralRe: Threading Problem- a thread that calls two functions Pin
gizmokaka18-Oct-07 5:48
gizmokaka18-Oct-07 5:48 
GeneralRe: Threading Problem- a thread that calls two functions Pin
Luc Pattyn18-Oct-07 6:58
sitebuilderLuc Pattyn18-Oct-07 6:58 
QuestionAny idea about how to work with IM? Pin
baburman18-Oct-07 3:33
baburman18-Oct-07 3:33 
AnswerRe: Any idea about how to work with IM? Pin
Abhijit Jana18-Oct-07 3:51
professionalAbhijit Jana18-Oct-07 3:51 
GeneralRe: Any idea about how to work with IM? Pin
baburman18-Oct-07 6:36
baburman18-Oct-07 6:36 
AnswerRe: Any idea about how to work with IM? Pin
User 665818-Oct-07 3:56
User 665818-Oct-07 3:56 
GeneralRe: Any idea about how to work with IM? Pin
Abhijit Jana18-Oct-07 4:51
professionalAbhijit Jana18-Oct-07 4:51 
Questiongloabal variable Pin
kabutar18-Oct-07 3:18
kabutar18-Oct-07 3:18 
hi ,
in this code i dont want to declare the result as a static gloabl variable..why are doing so and how can i avoid doing that...

class Program
{
static int result;

public int add(int x,int y)
{
result = x+y;
return result;
}



static void Main(string[] args)
{
Program obj = new Program();
int sum = obj.add(10, 20);

Console.WriteLine("{0}", result);

Console.WriteLine("{0}", sum);
Console.ReadLine();

}
}
}
thanks

C#

AnswerRe: gloabal variable Pin
Abhijit Jana18-Oct-07 3:43
professionalAbhijit Jana18-Oct-07 3:43 
GeneralRe: gloabal variable Pin
kabutar18-Oct-07 3:51
kabutar18-Oct-07 3:51 
GeneralRe: gloabal variable Pin
rajansethi18-Oct-07 4:52
rajansethi18-Oct-07 4:52 
AnswerRe: gloabal variable Pin
Luc Pattyn18-Oct-07 4:02
sitebuilderLuc Pattyn18-Oct-07 4:02 
GeneralCustomization of FxCop Pin
bhaskarsri18-Oct-07 2:26
bhaskarsri18-Oct-07 2:26 
GeneralRe: Customization of FxCop Pin
Scott Dorman18-Oct-07 4:08
professionalScott Dorman18-Oct-07 4:08 
GeneralRe: Customization of FxCop Pin
bhaskarsri18-Oct-07 17:35
bhaskarsri18-Oct-07 17:35 
GeneralRe: Customization of FxCop Pin
Scott Dorman19-Oct-07 6:32
professionalScott Dorman19-Oct-07 6:32 
Questionsetup package Pin
md_refay18-Oct-07 2:11
md_refay18-Oct-07 2:11 
AnswerRe: setup package Pin
GuyThiebaut18-Oct-07 2:36
professionalGuyThiebaut18-Oct-07 2:36 
AnswerRe: setup package Pin
Abhijit Jana18-Oct-07 2:50
professionalAbhijit Jana18-Oct-07 2:50 
AnswerRe: setup package Pin
Ravi Bhavnani18-Oct-07 3:13
professionalRavi Bhavnani18-Oct-07 3:13 
GeneralRe: setup package Pin
Abhijit Jana18-Oct-07 3:18
professionalAbhijit Jana18-Oct-07 3:18 
GeneralRe: setup package Pin
Ravi Bhavnani18-Oct-07 3:26
professionalRavi Bhavnani18-Oct-07 3:26 
GeneralRe: setup package Pin
Abhijit Jana18-Oct-07 3:36
professionalAbhijit Jana18-Oct-07 3:36 
QuestionHow to iterate threw CheckedListBox Pin
gizmokaka18-Oct-07 1:59
gizmokaka18-Oct-07 1:59 
QuestionMigration from ASP.net 2.0 to 1.1 Pin
adilkazmi18-Oct-07 1:27
adilkazmi18-Oct-07 1:27 

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.