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

C#

 
AnswerRe: Why use private static methods? Pin
PIEBALDconsult7-May-10 5:32
mvePIEBALDconsult7-May-10 5:32 
AnswerRe: Why use private static methods? Pin
Luc Pattyn7-May-10 5:43
sitebuilderLuc Pattyn7-May-10 5:43 
AnswerRe: Why use private static methods? Pin
Gregory Gadow7-May-10 6:07
Gregory Gadow7-May-10 6:07 
GeneralRe: Why use private static methods? Pin
David Skelly7-May-10 6:32
David Skelly7-May-10 6:32 
GeneralRe: Why use private static methods? Pin
Gregory Gadow7-May-10 6:36
Gregory Gadow7-May-10 6:36 
GeneralRe: Why use private static methods? Pin
PIEBALDconsult7-May-10 7:30
mvePIEBALDconsult7-May-10 7:30 
GeneralRe: Why use private static methods? Pin
Luc Pattyn7-May-10 8:00
sitebuilderLuc Pattyn7-May-10 8:00 
AnswerRe: Why use private static methods? Pin
Abhinav S7-May-10 6:42
Abhinav S7-May-10 6:42 
I found this interesting piece on the msdn site -
"A call to a static method generates a call instruction in Microsoft intermediate language (MSIL), whereas a call to an instance method generates a callvirt instruction, which also checks for a null object references. However, most of the time the performance difference between the two is not significant."

This is contrary to the belief that static methods can improve performance in certain situations.

So I suppose it's just a matter of usage really.
GeneralRe: Why use private static methods? Pin
AspDotNetDev7-May-10 9:43
protectorAspDotNetDev7-May-10 9:43 
Questionvariables Pin
toto_20107-May-10 4:47
toto_20107-May-10 4:47 
AnswerRe: variables PinPopular
Pete O'Hanlon7-May-10 4:50
mvePete O'Hanlon7-May-10 4:50 
AnswerRe: variables Pin
PIEBALDconsult7-May-10 5:14
mvePIEBALDconsult7-May-10 5:14 
GeneralRe: variables Pin
Luc Pattyn7-May-10 5:21
sitebuilderLuc Pattyn7-May-10 5:21 
GeneralRe: variables Pin
PIEBALDconsult7-May-10 5:25
mvePIEBALDconsult7-May-10 5:25 
GeneralRe: variables Pin
OriginalGriff7-May-10 5:42
mveOriginalGriff7-May-10 5:42 
GeneralRe: variables Pin
Luc Pattyn7-May-10 5:47
sitebuilderLuc Pattyn7-May-10 5:47 
GeneralRe: variables Pin
Eddy Vluggen7-May-10 5:51
professionalEddy Vluggen7-May-10 5:51 
GeneralRe: variables Pin
OriginalGriff7-May-10 5:52
mveOriginalGriff7-May-10 5:52 
QuestionC# - Windows Form Application Question Pin
mfrantz23617-May-10 4:44
mfrantz23617-May-10 4:44 
Questiontransmitted Pin
toto_20107-May-10 4:37
toto_20107-May-10 4:37 
JokeRe: transmitted Pin
Pete O'Hanlon7-May-10 4:39
mvePete O'Hanlon7-May-10 4:39 
GeneralRe: transmitted Pin
Luc Pattyn7-May-10 5:24
sitebuilderLuc Pattyn7-May-10 5:24 
JokeRe: transmitted Pin
T M Gray7-May-10 4:40
T M Gray7-May-10 4:40 
AnswerRe: transmitted Pin
PIEBALDconsult7-May-10 4:42
mvePIEBALDconsult7-May-10 4:42 
AnswerRe: transmitted Pin
Keith Barrow7-May-10 5:15
professionalKeith Barrow7-May-10 5:15 

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.