A simple C# calculator (request for ruthless code review)

I believe that building a simple calculator is one of the most popular tasks for beginners. There are several conditions, however, in this case:

Delegates should be used The user types a string that should be parsed as a math expression with just two numbers and one of the four operators (+, -, *, /) My first idea of using the Compute method of DataTable was, predictably, rejected I know that there is one serious flaw in the current version of the program. The input string is not validated. Apart from that, what are your recommendations and suggestions with regards to my code?


submitted by /u/dondraper36
[link] [comments]

Leave a Reply