Click here to Skip to main content
15,885,141 members
Home / Discussions / C#
   

C#

 
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?
GeneralRe: What is the best way to call methods in a commom class? Pin
Luc Pattyn21-Oct-09 13:43
sitebuilderLuc Pattyn21-Oct-09 13:43 
GeneralRe: What is the best way to call methods in a commom class? Pin
CBenac22-Oct-09 2:49
CBenac22-Oct-09 2:49 
AnswerRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 5:32
professional dan!sh 21-Oct-09 5:32 
GeneralRe: What is the best way to call methods in a commom class? Pin
Not Active21-Oct-09 5:48
mentorNot Active21-Oct-09 5:48 
GeneralRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 5:55
professional dan!sh 21-Oct-09 5:55 
GeneralRe: What is the best way to call methods in a commom class? Pin
Not Active21-Oct-09 6:28
mentorNot Active21-Oct-09 6:28 
GeneralRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 7:26
professional dan!sh 21-Oct-09 7:26 
GeneralRe: What is the best way to call methods in a commom class? Pin
Not Active21-Oct-09 7:49
mentorNot Active21-Oct-09 7:49 
GeneralRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 7:59
professional dan!sh 21-Oct-09 7:59 
GeneralRe: What is the best way to call methods in a commom class? Pin
Not Active21-Oct-09 8:28
mentorNot Active21-Oct-09 8:28 
Questionscript Pin
netJP12L21-Oct-09 4:53
netJP12L21-Oct-09 4:53 
AnswerRe: script Pin
dan!sh 21-Oct-09 5:29
professional dan!sh 21-Oct-09 5:29 
AnswerRe: script Pin
Rob Branaghan21-Oct-09 5:32
Rob Branaghan21-Oct-09 5:32 
QuestionSerialization of a class which is inherriting from the TreeNode class Pin
mhouck21-Oct-09 3:49
mhouck21-Oct-09 3:49 
QuestionHow to Add a Column to an imported excel file to a DataGridView . Pin
nassimnastaran21-Oct-09 3:39
nassimnastaran21-Oct-09 3:39 
AnswerRe: How to Add a Column to an imported excel file to a DataGridView . Pin
dan!sh 21-Oct-09 5:28
professional dan!sh 21-Oct-09 5:28 
GeneralRe: How to Add a Column to an imported excel file to a DataGridView . Pin
nassimnastaran21-Oct-09 6:20
nassimnastaran21-Oct-09 6:20 

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.