Where is System.CodeDom.Compiler.CompilerParameters located in Silverlight?

I want to create a mathematical expression analyzer in Silverlight. To make this easy, I need compilation on the fly using System.Reflection, System.Reflection.Emit, System.CodeDom.Compiler and other related assemblies.

However, I cannot find this class in Silverlight.

Give me some suggestions.

+4
source share
1 answer

Silverlight does not execute CodeDom, System.Reflection and System.Reflection.Emit are present in mscorlib for Silverlight.

Therefore, if you are going to do an expression evaluator, you need to emit IL for the expressions.

Alternatively, if you can use Javascript, you can force the host browser to perform the evaluation.

+7
source

Source: https://habr.com/ru/post/1309265/


All Articles