Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
Questionbest data strcuture for numeric parsing. Pin
shivamkalra15-Mar-11 18:24
shivamkalra15-Mar-11 18:24 
AnswerRe: best data strcuture for numeric parsing. Pin
GlobX15-Mar-11 19:27
GlobX15-Mar-11 19:27 
GeneralRe: best data strcuture for numeric parsing. Pin
shivamkalra15-Mar-11 20:22
shivamkalra15-Mar-11 20:22 
GeneralRe: best data strcuture for numeric parsing. Pin
GlobX15-Mar-11 20:32
GlobX15-Mar-11 20:32 
GeneralRe: best data strcuture for numeric parsing. Pin
shivamkalra15-Mar-11 20:37
shivamkalra15-Mar-11 20:37 
GeneralRe: best data strcuture for numeric parsing. Pin
GlobX15-Mar-11 20:53
GlobX15-Mar-11 20:53 
GeneralRe: best data strcuture for numeric parsing. Pin
shivamkalra15-Mar-11 20:33
shivamkalra15-Mar-11 20:33 
AnswerRe: best data strcuture for numeric parsing. Pin
_Maxxx_15-Mar-11 19:43
professional_Maxxx_15-Mar-11 19:43 
GlobX's solution moves the problem (i.e. searching 30 operators each time) out of the way, but I don't think there's any way of actually avoiding it.

However, you could use a Dictionary<string, ioperator=""> which you populate with all of the valid operators and their associated tokens, then use TryGetValue to return the IOperator instance to use.

Of course, behind the scenes, the Dictionary still has to look through all the keys...
___________________________________________
.\\axxx
(That's an 'M')

QuestionRe: best data strcuture for numeric parsing. Pin
GlobX15-Mar-11 19:58
GlobX15-Mar-11 19:58 
AnswerRe: best data strcuture for numeric parsing. Pin
shivamkalra15-Mar-11 20:23
shivamkalra15-Mar-11 20:23 
GeneralRe: best data strcuture for numeric parsing. Pin
shivamkalra15-Mar-11 20:25
shivamkalra15-Mar-11 20:25 
AnswerRe: best data strcuture for numeric parsing. Pin
PIEBALDconsult16-Mar-11 2:56
mvePIEBALDconsult16-Mar-11 2:56 
AnswerRe: best data strcuture for numeric parsing. Pin
_Erik_16-Mar-11 3:44
_Erik_16-Mar-11 3:44 
GeneralRe: best data strcuture for numeric parsing. Pin
shivamkalra16-Mar-11 8:01
shivamkalra16-Mar-11 8:01 
AnswerRe: best data strcuture for numeric parsing. Pin
Alan Balkany16-Mar-11 4:27
Alan Balkany16-Mar-11 4:27 
AnswerRe: best data strcuture for numeric parsing. Pin
David198716-Mar-11 4:57
David198716-Mar-11 4:57 
QuestionObtaining Administrator Authority Pin
gmhanna15-Mar-11 17:21
gmhanna15-Mar-11 17:21 
AnswerRe: Obtaining Administrator Authority Pin
Dave Kreskowiak15-Mar-11 17:43
mveDave Kreskowiak15-Mar-11 17:43 
AnswerRe: Obtaining Administrator Authority Pin
DaveyM6916-Mar-11 2:15
professionalDaveyM6916-Mar-11 2:15 
AnswerRe: Obtaining Administrator Authority Pin
PIEBALDconsult16-Mar-11 17:03
mvePIEBALDconsult16-Mar-11 17:03 
Questioncpu performance with wmi ... Pin
SungBae.Han15-Mar-11 13:19
SungBae.Han15-Mar-11 13:19 
AnswerAppend information... Pin
SungBae.Han15-Mar-11 13:29
SungBae.Han15-Mar-11 13:29 
AnswerRe: cpu performance with wmi ... Pin
Valery Possoz23-Mar-11 12:54
professionalValery Possoz23-Mar-11 12:54 
QuestionIs there anything built in for distributed applications? Pin
SledgeHammer0115-Mar-11 11:31
SledgeHammer0115-Mar-11 11:31 
AnswerRe: Is there anything built in for distributed applications? Pin
Mycroft Holmes15-Mar-11 12:32
professionalMycroft Holmes15-Mar-11 12:32 

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.