{"id":23740209,"url":"https://github.com/mustaddon/csharpeval","last_synced_at":"2025-09-04T15:32:04.066Z","repository":{"id":44686922,"uuid":"181763714","full_name":"mustaddon/CSharpEval","owner":"mustaddon","description":"Compile and execute C# code at program runtime","archived":false,"fork":false,"pushed_at":"2019-04-17T20:05:03.000Z","size":22,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-16T15:18:07.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mustaddon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-16T20:39:26.000Z","updated_at":"2022-08-15T05:00:11.000Z","dependencies_parsed_at":"2022-08-03T18:15:18.417Z","dependency_job_id":null,"html_url":"https://github.com/mustaddon/CSharpEval","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustaddon%2FCSharpEval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustaddon%2FCSharpEval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustaddon%2FCSharpEval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustaddon%2FCSharpEval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mustaddon","download_url":"https://codeload.github.com/mustaddon/CSharpEval/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231970943,"owners_count":18453930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-31T09:47:28.060Z","updated_at":"2024-12-31T09:47:28.585Z","avatar_url":"https://github.com/mustaddon.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSharpEval [![NuGet version](https://badge.fury.io/nu/RandomSolutions.CSharpEval.svg)](http://badge.fury.io/nu/RandomSolutions.CSharpEval)\nCompile and execute C# code at program runtime\n\n## Examples\n\n*Simple math expression*\n```csharp\nvar result = CSharpEval.Execute\u003cint\u003e(\"A + B\", new { A = 2, B = 3});\n```\n\n*Linq sample*\n```csharp\nvar result = CSharpEval.Execute\u003cint\u003e(@\"\n    var list = new List\u003cint\u003e() { 1, 2, 3, 4, 5 };\n    return list.Where(x =\u003e x \u003c K).Sum(x =\u003e x);\n\", new { K = 5 });\n```\n\n*Adding references*\n```csharp\nCSharpEval.Execute(\"Console.WriteLine(A)\", \n    new { A = ExternalLib.SomeEnum.Sample }, \n    new[] { Assembly.GetAssembly(typeof(ExternalLib.SomeEnum)) });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustaddon%2Fcsharpeval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmustaddon%2Fcsharpeval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustaddon%2Fcsharpeval/lists"}