public ExpressionsEvaluator() { NativeCompiler = new NativeCompiler(); NativeCompiler.AddDll(PathUtility.GetFullPath("Computator.NET.DataTypes.dll")); _tslCompiler = new TslCompiler(); Logger = LogManager.GetLogger(GetType().FullName); AdditionalObjectsCode = ""; AdditionalUsings = ""; }
public ScriptEvaluator() { FunctionType = FunctionType.Scripting; AdditionalUsings = @" //using System.Collections.Generic; //using System.Windows.Forms.Integration; //using System.Linq; //using Computator.NET.Charting; //using Complex = System.Numerics.Complex; //using DenseVector = MathNet.Numerics.LinearAlgebra.Complex.DenseVector; //using MathNet.Numerics.LinearAlgebra; //using MathNet.Numerics.LinearAlgebra.Double; //using Meta.Numerics; //using System.IO; //using System.Windows.Forms; //using System.Windows.Media; //using System.Windows.Media.Media3D; //using Computator.NET.Charting.Chart3D; //using Computator.NET.Charting.ComplexCharting; //using Computator.NET.Charting.RealCharting; //using Computator.NET.DataTypes; //using Computator.NET.DataTypes.SettingsTypes; //using Meta.Numerics.Matrices; "; NativeCompiler.AddDll(GlobalConfig.FullPath("Computator.NET.Charting.dll")); NativeCompiler.AddDll(GlobalConfig.FullPath("Computator.NET.DataTypes.dll")); ///////////////////////// NativeCompiler.AddDll("System.Drawing.dll"); #if !__MonoCS__ NativeCompiler.AddDll("System.Windows.Forms.DataVisualization.dll"); #else NativeCompiler.AddDll(GlobalConfig.FullPath("DataVisualizationX.dll")); #endif NativeCompiler.AddDll("System.Windows.Forms.dll"); NativeCompiler.AddDll("System.Xaml.dll"); //NativeCompiler.AddDll("Microsoft.CSharp.dll"); #if !__MonoCS__ NativeCompiler.AddDll(typeof(System.Windows.Media.Media3D.AmbientLight).Assembly.Location); //"PresentationCore.dll"); NativeCompiler.AddDll(typeof(System.Windows.Data.XmlDataProvider).Assembly.Location); //"PresentationFramework.dll"); NativeCompiler.AddDll(typeof(System.Windows.Forms.Integration.ElementHost).Assembly.Location); //"WindowsFormsIntegration.dll"); #endif NativeCompiler.AddDll(typeof(PresentationTraceSources).Assembly.Location); //"WindowsBase.dll"); NativeCompiler.IsScripting = true; _additionalObjectsCodeCopy = AdditionalObjectsCode = NumericalExtensions.ToCode + ScriptingExtensionObjects.ToCode; Logger.ClassName = GetType().FullName; }