CodePlexProject Hosting for Open Source Software
An unexpected error has occured.
There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Voted
No files are attached
aikeru wrote Jun 20, 2012 at 11:42 PM
lu4 wrote Jun 21, 2012 at 12:18 PM
var engine = new Jurassic.ScriptEngine(); engine.SetGlobalFunction("test", new Func<int, int, int>((a, b) => a + b)); Console.WriteLine(engine.Evaluate<int>("test(5, 6)"));
Test.MainClass:<Main>m__0 (int,int)' is inaccessible from method
internal static bool LowPrivilegeEnvironment { get { lock (lowPrivilegeEnvironmentLock) { if (lowPrivilegeEnvironmentTested == false) { if (Type.GetType("Mono.Runtime") != null) { lowPrivilegeEnvironment = true; lowPrivilegeEnvironmentTested = true; } else { var permission = new System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode); lowPrivilegeEnvironment = !System.Security.SecurityManager.IsGranted(permission); lowPrivilegeEnvironmentTested = true; } } } return lowPrivilegeEnvironment; } }
Sign in to add a comment or to set email notifications
Keyboard shortcuts are available for this page.