Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
139 views

In my current desktop application, I evaluate dynamic C# formulas at runtime using CodeDomProvider. The formulas are written as C# snippets, and from each snippet I generate a full class and method, ...
goce pacemski's user avatar
0 votes
1 answer
34 views

My app implements plugin system (razor libraries). App is using razor runtime compilation. Razor library contains few ViewComponents with custom structure described below. Razor library structure: ...
luve's user avatar
  • 11
3 votes
1 answer
649 views

I am trying to use Roslyn to compile C# code at runtime. My compilation function is as follows: using System.Collections.Immutable; using Basic.Reference.Assemblies; using Microsoft.CodeAnalysis; ...
D.J. Elkind's user avatar
0 votes
1 answer
217 views

I have an ID-Record class and I want to block callers / users from using the operator== since it is ambiguous (user may want to compare only data field for equality). Here's my class: #include <...
Thomas Matthews's user avatar
0 votes
1 answer
136 views

My code: import scala.reflect.runtime import scala.reflect.runtime.universe import scala.reflect.runtime.universe._ import scala.tools.reflect.ToolBox object Stuff { val rm: universe.Mirror = ...
stackoverflowflowflwofjlw's user avatar
0 votes
0 answers
48 views

I've previously asked a question "How to get the Type of an Array of Nullable Primitive?" How to get the Type of an Array of Nullable Primitive?. In that question, I have a class in my c# ...
EBDS's user avatar
  • 1,824
1 vote
1 answer
811 views

During the running of a scala script, I would like it to generate some code and execute this. I thought I had found two examples online that might work, but they aren't successful import scala.reflect....
user avatar
0 votes
0 answers
197 views

I know that I can compile function at runtime and use code copied from this CodeProject article: public static MethodInfo CreateFunction(string function) { string code = @" ...
DrWh0's user avatar
  • 126
0 votes
1 answer
37 views

I am building a shared UI - razor page in a Lib project (Visual Studio), the purpose is to add the Lib project as ProjectReference to multiple places. I am stuck at finding a way to reflect the ....
Tien Dang's user avatar
1 vote
1 answer
1k views

I am experimenting with loading views from a database, and as suggested in the article one might want to add some caching to prevent hitting the database every time. ConfigureServices: services....
Asons's user avatar
  • 87.7k
0 votes
0 answers
55 views

Let me start by saying that I am only perhaps at an intermediate level in coding, but am not too familiar with DS and Algo. I wrote this bit of code that returns the sum of a given number of elements ...
Akash Chattopadhyay's user avatar
0 votes
1 answer
1k views

I'm building an app that requires a EntityFrameWorkCore DbContext to be created runtime and then migrated, the code below compiles and runs if i don't use the dbContext.Database.Migrate() method, but ...
emipal's user avatar
  • 5
2 votes
0 answers
246 views

I want to compile java classes in runtime in parallel. Since it takes time to compile them sequentially. I used OpenHFT/Java-Runtime-Compiler (https://github.com/OpenHFT/Java-Runtime-Compiler, version ...
Noam Gershi's user avatar
2 votes
1 answer
2k views

When I install Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation in a Web project and in Startup add : services.AddMvc().AddRazorRuntimeCompilation(); ,the project does not run and the error is: ...
MrJahanbin's user avatar
-1 votes
1 answer
558 views

I'm reading this article on regular expressions, and it says "Using the constructor function provides runtime compilation of the regular expression". It then says "Use the constructor function when ...
RNdev's user avatar
  • 1,291
1 vote
1 answer
180 views

When people download my project from GitHub, I launch a Setup Guide on Start Up that contains a button that reads 'Launch Connection String Builder'. The problem is GitHub doesn't store the .exe, so ...
user avatar
0 votes
1 answer
237 views

I ask with example, Lets say I have the following code. fullcommand = @"public class oldTest { public static void oldTestMethod(){ Console.WriteLine(""oldTest Class""); } }" var ...
Emily Wong's user avatar
3 votes
1 answer
248 views

I am working on a program that generates program (Genetic Programming). I build at runtime an s-expression and today I use eval like this: (defvar *program* '(+ x 1)) (defvar x 10) (eval *program*) ;;...
Guillaume Michel's user avatar
1 vote
1 answer
836 views

I posted a question on a similar topic a couple days ago (and one a couple years ago), but I decided to go ahead and get started. I am trying to inject C++ code into C++ code (in a somewhat portable ...
The Floating Brain's user avatar
5 votes
1 answer
2k views

I'm trying to use Roslyn as a way to parse lambda expressions provided at runtime by users using the general format: // The first line is normally static and re-used across callers to save perf ...
Jeff Wight's user avatar
2 votes
0 answers
620 views

I am trying to Create multiple assemblies at runtime. I am using Roslyn to compile each assembly in serial. I am not able to leverage multithreading because Roslyn internally uses multithreading for ...
Anoop's user avatar
  • 61
1 vote
0 answers
251 views

I am using Roslyn to generate a runtime dll using a number of VB files on disk. I am first creating syntax trees from all those files and then using them for creating VBCompilation and them emitting ...
Anoop's user avatar
  • 61
1 vote
0 answers
97 views

When I compile VB code using CodeDom, I need not specify fully qualified path for system references. For example: Dim param As New CompilerParameters param.ReferencedAssemblies.Add("System.dll") ...
Anoop's user avatar
  • 61
1 vote
1 answer
594 views

I am using wikipedia python package to scrape data of a particular topic q=['NASA', 'NASA_insignia', 'NASA_spinoff_technologies', 'NASA_facilities', 'NASA_Pathfinder', 'List_of_NASA_missions', '...
Ashwini kumar jha's user avatar
0 votes
1 answer
582 views

I want to render incoming text from an API as subsequent HTML and component template. Most of the solutions I found here use @ViewChild to inject the components but that doesn't work for me since I ...
Viplov Patney's user avatar