Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to manager the uri in C# Pin
silva10321-Oct-09 17:46
silva10321-Oct-09 17:46 
AnswerRe: how to manager the uri in C# Pin
silva10322-Oct-09 4:03
silva10322-Oct-09 4:03 
QuestionUsing keyboard's key instead of the buttom. Pin
niammirzaei21-Oct-09 16:22
niammirzaei21-Oct-09 16:22 
AnswerRe: Using keyboard's key instead of the buttom. Pin
Richard Andrew x6421-Oct-09 16:47
professionalRichard Andrew x6421-Oct-09 16:47 
GeneralRe: Using keyboard's key instead of the buttom. Pin
niammirzaei21-Oct-09 18:58
niammirzaei21-Oct-09 18:58 
QuestionPhone Calls Pin
Bismark Appah21-Oct-09 14:55
Bismark Appah21-Oct-09 14:55 
AnswerRe: Phone Calls Pin
Richard Andrew x6421-Oct-09 15:56
professionalRichard Andrew x6421-Oct-09 15:56 
GeneralRe: Phone Calls Pin
Bismark Appah21-Oct-09 22:05
Bismark Appah21-Oct-09 22:05 
QuestionCut and Paste Attachements from Outlook Pin
werner2721-Oct-09 10:26
werner2721-Oct-09 10:26 
QuestionHow To Make A Data Bound Control Pin
Kevin Marois21-Oct-09 10:15
professionalKevin Marois21-Oct-09 10:15 
AnswerRe: How To Make A Data Bound Control [modified] Pin
Eddy Vluggen21-Oct-09 11:26
professionalEddy Vluggen21-Oct-09 11:26 
GeneralRe: How To Make A Data Bound Control Pin
Kevin Marois21-Oct-09 13:52
professionalKevin Marois21-Oct-09 13:52 
Questionis it possible to scroll Microsoft Word, Excel? Pin
venkat S0721-Oct-09 7:24
venkat S0721-Oct-09 7:24 
Questionis it possible to get the scrollbar info from IE via user32.dll or any provider? how? Pin
venkat S0721-Oct-09 7:19
venkat S0721-Oct-09 7:19 
QuestionConverting to WMF Pin
mypicturefaded21-Oct-09 5:31
mypicturefaded21-Oct-09 5:31 
AnswerRe: Converting to WMF Pin
Richard MacCutchan21-Oct-09 5:39
mveRichard MacCutchan21-Oct-09 5:39 
GeneralRe: Converting to WMF Pin
mypicturefaded21-Oct-09 5:45
mypicturefaded21-Oct-09 5:45 
GeneralRe: Converting to WMF PinPopular
mypicturefaded21-Oct-09 5:52
mypicturefaded21-Oct-09 5:52 
GeneralRe: Converting to WMF Pin
Richard MacCutchan21-Oct-09 5:53
mveRichard MacCutchan21-Oct-09 5:53 
GeneralRe: Converting to WMF Pin
mypicturefaded21-Oct-09 9:01
mypicturefaded21-Oct-09 9:01 
GeneralRe: Converting to WMF Pin
Richard MacCutchan21-Oct-09 11:10
mveRichard MacCutchan21-Oct-09 11:10 
AnswerRe: Converting to WMF Pin
Luc Pattyn21-Oct-09 11:22
sitebuilderLuc Pattyn21-Oct-09 11:22 
QuestionWhat is the best way to call methods in a commom class? Pin
CBenac21-Oct-09 5:04
CBenac21-Oct-09 5:04 
AnswerRe: What is the best way to call methods in a commom class? Pin
Luc Pattyn21-Oct-09 5:07
sitebuilderLuc Pattyn21-Oct-09 5:07 
GeneralRe: What is the best way to call methods in a commom class? Pin
CBenac21-Oct-09 13:36
CBenac21-Oct-09 13:36 
Thanks for the reply. It appears that the thread went totaly out of the subject.
I'll try to explain in another way: Using a classic example, let's say there is a Calculator class with 4 methods that perform the basic 4 aritmetic operations, and these 4 methods are called several times from several different classes spread throught several modules in the application (Thread is not an issue here,please)

The question is: What approach is better?

1. Always create an instance of the class inside every methods that uses it then wait for the GC to dispose of it.

2. Create 4 static methods inside the Calculator class and access then directly.

3. Is there any other way?

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.