Click here to Skip to main content
15,920,053 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: class XXX and class XXXImpl Pin
Pete O'Hanlon27-May-08 9:22
mvePete O'Hanlon27-May-08 9:22 
GeneralRe: class XXX and class XXXImpl Pin
led mike27-May-08 9:47
led mike27-May-08 9:47 
GeneralRe: class XXX and class XXXImpl Pin
Pete O'Hanlon27-May-08 10:01
mvePete O'Hanlon27-May-08 10:01 
GeneralRe: class XXX and class XXXImpl Pin
led mike27-May-08 10:19
led mike27-May-08 10:19 
GeneralRe: class XXX and class XXXImpl Pin
Mark Churchill9-Jun-08 18:21
Mark Churchill9-Jun-08 18:21 
AnswerRe: class XXX and class XXXImpl PinPopular
Shog925-May-08 11:54
sitebuilderShog925-May-08 11:54 
GeneralRe: class XXX and class XXXImpl Pin
Scott Dorman25-May-08 12:36
professionalScott Dorman25-May-08 12:36 
GeneralRe: class XXX and class XXXImpl Pin
Shog925-May-08 12:47
sitebuilderShog925-May-08 12:47 
GeneralRe: class XXX and class XXXImpl Pin
Scott Dorman25-May-08 14:12
professionalScott Dorman25-May-08 14:12 
GeneralRe: class XXX and class XXXImpl Pin
Ahmed Charfeddine26-May-08 23:23
Ahmed Charfeddine26-May-08 23:23 
GeneralRe: class XXX and class XXXImpl Pin
Mark Churchill9-Jun-08 18:20
Mark Churchill9-Jun-08 18:20 
QuestionAdvice on Architecture for customized application Pin
ruben ruvalcaba20-May-08 4:20
ruben ruvalcaba20-May-08 4:20 
AnswerRe: Advice on Architecture for customized application Pin
Mycroft Holmes23-May-08 1:13
professionalMycroft Holmes23-May-08 1:13 
GeneralRe: Advice on Architecture for customized application Pin
ruben ruvalcaba23-May-08 4:47
ruben ruvalcaba23-May-08 4:47 
AnswerRe: Advice on Architecture for customized application Pin
Scott Dorman25-May-08 2:19
professionalScott Dorman25-May-08 2:19 
GeneralRe: Advice on Architecture for customized application Pin
ruben ruvalcaba26-May-08 4:46
ruben ruvalcaba26-May-08 4:46 
GeneralRe: Advice on Architecture for customized application Pin
Scott Dorman26-May-08 5:09
professionalScott Dorman26-May-08 5:09 
Question'Dynamic' String Formatting Pin
HoltDan18-May-08 15:07
HoltDan18-May-08 15:07 
AnswerRe: 'Dynamic' String Formatting Pin
led mike19-May-08 4:58
led mike19-May-08 4:58 
GeneralRe: 'Dynamic' String Formatting Pin
HoltDan19-May-08 5:50
HoltDan19-May-08 5:50 
I guess I could take their input string ("%A% something %M% - %B% @ %T%" - or whatever) and transform it into a format string "{0} something {1} - {2} @ {3}" and load up a list of delegates to return the corresponding args. Kind of like what I'd do preparing to generate the dynamic method in my original example. However, I'd still have to do it per-instance or per-invocation of the method that calls string.Format.

I just don't have a good feel for how efficient something like that is. Plus I'll probably never get the chance to measure in any meaningful context.

Or maybe I'm being dense and there's a design pattern or technique for doing this sort of thing. I looked into IFormatProvider(?) which might be helpful once the code gets down to the nuts 'n bolts of formatting each piece of text, but not in assembling the parameters at run time.

The error handling isn't much of a concern. I simplified the example: in reality, this product gets installed at various customer sites and configuring the display strings to their specifications is something that will be part of the setup. There will be error checking and it will be done infrequently and then by 'qualified' professionals (that's a good one!).

Dan
GeneralRe: 'Dynamic' String Formatting Pin
led mike19-May-08 6:08
led mike19-May-08 6:08 
GeneralRe: 'Dynamic' String Formatting Pin
Roger Alsing20-May-08 4:06
Roger Alsing20-May-08 4:06 
GeneralRe: 'Dynamic' String Formatting Pin
Scott Dorman25-May-08 2:31
professionalScott Dorman25-May-08 2:31 
QuestionHelp with a inheritance best practices question Pin
turnergg18-May-08 8:20
turnergg18-May-08 8:20 
AnswerRe: Help with a inheritance best practices question Pin
led mike19-May-08 4:51
led mike19-May-08 4:51 

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.