Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字列内の数式を評価できる方法はありますか? 例 (実際のコードではありません):
入力 = "2+2"
出力 = SomeMethod(入力)
出力 = 4
更新: 気にしないで、DataTable.Compute を使用して回避する方法を見つけました。
これを処理するには、数式パーサーが必要です。
CodePlex のさまざまなオープン ソース オプションを次に示します。
検索すると他にもたくさん出てきます...