Say I have a type string "(12.2*(5/7))", is there an API / method that can parse this, or will I need to write from scratch?
"(12.2*(5/7))"
thank
Yes, there is such a framework. Just google for the '.NET expression parser' and you will get many results!
You need to write one or find a library to do this. There is nothing in .NET to support this as a standard.
, , , Excel ( , FlexCel) Excel . , excel. , , Excel .
See CodeProject.com article Implementing C # Programming Language Tools . Included samples include an arithmetic evaluator and JavaScript for the expression tree compiler. The combination of these features should provide you with what you want.
Source: https://habr.com/ru/post/1795468/More articles:How to comment #if, #else, #endif preprocessor design? - c ++What is the meaning of non-atomic and stored in the declaration of properties - propertiesWhy don't we have stateful protocols running on the Internet? - httpHigh Volume Erlang - loggingRun the specified command on error without try / catch in Matlab - matlabLoading screens in games (providing animation does not stutter during the transition) - iphoneproblems with div breakdown - htmlHow to change Internet ShortCut.url file in C # and Windows 7 - c #Как создать "информативное" предпочтение - androidUsing a single emacs instance from multiple (virtual) machines - emacsAll Articles