mario.deghetto

Visual Basic & .NET
posts - 319, comments - 204, trackbacks - 0

[VB.NET] Valutazione di espressioni grazie a System.Reflection

Mi è capitato più volte di leggere delle richieste di funzioni per la valutazione di espressioni matematiche, tipo questa:

3+2*((5*3)-(20/10))

Una buona soluzione è stata scritta da Corrado Cavalli in un post di “MSDN Tips & Tricks” e precisamente utilizzando le librerie System.Reflection e System.CodeDom. Il post, realizzato con codice VB.NET e C#, si trova qui.

Print | posted on martedì 26 gennaio 2010 5.04 |

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 8 and 2 and type the answer here:

Powered by: