Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: Use of statics and singletons Pin
Christian Graus13-Jul-09 12:13
protectorChristian Graus13-Jul-09 12:13 
GeneralRe: Use of statics and singletons Pin
N a v a n e e t h13-Jul-09 18:02
N a v a n e e t h13-Jul-09 18:02 
Christian Graus wrote:
It's just an idiom. I prefer to write static classes, but a class with a static Instance property works just as well. What is the difference ? If a class does not have state, then static makes sense to me.


Yes, It's just an idiom. But do you think creating a class (static) is reasonable just for grouping a set of methods? This is where C++'s free (non member) functions takes advantage. It will not force to create classes just for putting some methods. I really wish to see free functions in C#.

Smile | :)


AnswerRe: Use of statics and singletons Pin
Luc Pattyn13-Jul-09 12:44
sitebuilderLuc Pattyn13-Jul-09 12:44 
AnswerRe: Use of statics and singletons Pin
PIEBALDconsult13-Jul-09 13:23
mvePIEBALDconsult13-Jul-09 13:23 
Questiontoolbar + menu + task handler best practice Pin
swjam13-Jul-09 11:59
swjam13-Jul-09 11:59 
AnswerRe: toolbar + menu + task handler best practice Pin
Luc Pattyn13-Jul-09 12:47
sitebuilderLuc Pattyn13-Jul-09 12:47 
AnswerRe: toolbar + menu + task handler best practice Pin
Luc Pattyn13-Jul-09 13:27
sitebuilderLuc Pattyn13-Jul-09 13:27 
QuestionHowto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 11:34
NewJavaBean13-Jul-09 11:34 
AnswerRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 11:54
sitebuilderLuc Pattyn13-Jul-09 11:54 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 12:20
NewJavaBean13-Jul-09 12:20 
GeneralRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 12:34
sitebuilderLuc Pattyn13-Jul-09 12:34 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 12:42
NewJavaBean13-Jul-09 12:42 
GeneralRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 12:49
sitebuilderLuc Pattyn13-Jul-09 12:49 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 13:03
NewJavaBean13-Jul-09 13:03 
GeneralRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 13:24
sitebuilderLuc Pattyn13-Jul-09 13:24 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 14:53
NewJavaBean13-Jul-09 14:53 
AnswerRe: Howto write text into a picturebox on runtime Pin
Christian Graus13-Jul-09 14:25
protectorChristian Graus13-Jul-09 14:25 
QuestionPathGradientBrush and irregular shapes Pin
JimLaVine13-Jul-09 10:54
JimLaVine13-Jul-09 10:54 
AnswerRe: PathGradientBrush and irregular shapes Pin
Christian Graus13-Jul-09 10:59
protectorChristian Graus13-Jul-09 10:59 
AnswerRe: PathGradientBrush and irregular shapes Pin
Luc Pattyn13-Jul-09 11:25
sitebuilderLuc Pattyn13-Jul-09 11:25 
AnswerRe: PathGradientBrush and irregular shapes Pin
Henry Minute13-Jul-09 12:02
Henry Minute13-Jul-09 12:02 
Questiongetting specific string error? [modified] Pin
maifs13-Jul-09 10:46
maifs13-Jul-09 10:46 
AnswerRe: getting specific string error? Pin
Luc Pattyn13-Jul-09 10:57
sitebuilderLuc Pattyn13-Jul-09 10:57 
AnswerRe: getting specific string error? Pin
Christian Graus13-Jul-09 10:57
protectorChristian Graus13-Jul-09 10:57 
QuestionGraphics.MeasureString accuracy Pin
tasoss13-Jul-09 10:16
tasoss13-Jul-09 10:16 

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.