Click here to Skip to main content
15,894,145 members
Home / Discussions / C#
   

C#

 
AnswerRe: Switch versus an array of delegates Pin
Luc Pattyn11-Mar-10 6:04
sitebuilderLuc Pattyn11-Mar-10 6:04 
GeneralRe: Switch versus an array of delegates Pin
Dave Kreskowiak11-Mar-10 6:38
mveDave Kreskowiak11-Mar-10 6:38 
GeneralRe: Switch versus an array of delegates Pin
Luc Pattyn11-Mar-10 6:58
sitebuilderLuc Pattyn11-Mar-10 6:58 
GeneralRe: Switch versus an array of delegates Pin
DaveyM6911-Mar-10 7:56
professionalDaveyM6911-Mar-10 7:56 
GeneralRe: Switch versus an array of delegates Pin
PIEBALDconsult11-Mar-10 8:03
mvePIEBALDconsult11-Mar-10 8:03 
GeneralRe: Switch versus an array of delegates Pin
Dave Kreskowiak11-Mar-10 9:11
mveDave Kreskowiak11-Mar-10 9:11 
GeneralRe: Switch versus an array of delegates Pin
dybs11-Mar-10 17:28
dybs11-Mar-10 17:28 
GeneralRe: Switch versus an array of delegates Pin
Luc Pattyn11-Mar-10 17:38
sitebuilderLuc Pattyn11-Mar-10 17:38 
There is nothing wrong as long as you are fully aware of the consequences. The first thing you probably loose is good readability and hence easy debugging and maintainability.

When in search of maximum performance, quite often object orientation is bad when the objects are very small and very many (too much overhead). Method calls are bad (they don't compute anything), conditionals are bad (they disturb normal program flow). Combine that and you may end up with large pieces of straight, hardly structured, code; and then there is a whole collection of hacks to choose from.

Whether all this is acceptable is matter of discussion.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: Switch versus an array of delegates Pin
PIEBALDconsult11-Mar-10 6:41
mvePIEBALDconsult11-Mar-10 6:41 
QuestionCreating system of separation access rights Pin
Xgener11-Mar-10 5:26
Xgener11-Mar-10 5:26 
AnswerRe: Creating system of separation access rights Pin
Saksida Bojan11-Mar-10 5:56
Saksida Bojan11-Mar-10 5:56 
QuestionOutlook - with Hotmail account Pin
chiky_ancutza11-Mar-10 5:21
chiky_ancutza11-Mar-10 5:21 
QuestionGameServer Query A2S_PLAYER Problem Pin
Nokia555611-Mar-10 5:21
Nokia555611-Mar-10 5:21 
QuestionRotate an rectangle while moving the mouse... and watch it rotating Pin
nwl11-Mar-10 3:01
nwl11-Mar-10 3:01 
AnswerRe: Rotate an rectangle while moving the mouse... and watch it rotating Pin
OriginalGriff11-Mar-10 3:52
mveOriginalGriff11-Mar-10 3:52 
AnswerRe: Rotate an rectangle while moving the mouse... and watch it rotating Pin
dan!sh 11-Mar-10 4:28
professional dan!sh 11-Mar-10 4:28 
AnswerRe: Rotate an rectangle while moving the mouse... and watch it rotating Pin
Luc Pattyn11-Mar-10 5:18
sitebuilderLuc Pattyn11-Mar-10 5:18 
Questionhi Pin
Djtech0111-Mar-10 2:49
Djtech0111-Mar-10 2:49 
AnswerRe: hi Pin
Not Active11-Mar-10 3:28
mentorNot Active11-Mar-10 3:28 
AnswerRe: hi Pin
Luc Pattyn11-Mar-10 3:50
sitebuilderLuc Pattyn11-Mar-10 3:50 
Generaldetail explaination to my question. Pin
Djtech0114-Mar-10 22:18
Djtech0114-Mar-10 22:18 
AnswerRe: hi Pin
Dave Kreskowiak11-Mar-10 5:19
mveDave Kreskowiak11-Mar-10 5:19 
Questionconvert foxpro project to c#/ms sql2005 server project Pin
bharatvpatil11-Mar-10 1:52
bharatvpatil11-Mar-10 1:52 
AnswerRe: convert foxpro project to c#/ms sql2005 server project Pin
Dave Kreskowiak11-Mar-10 1:59
mveDave Kreskowiak11-Mar-10 1:59 
AnswerRe: convert foxpro project to c#/ms sql2005 server project Pin
dan!sh 11-Mar-10 4:30
professional dan!sh 11-Mar-10 4:30 

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.