Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

I have a jagged array created from a XSD. The type is: object[][][] myobject; Using CodeDom, I want to create some functions and one returns an instance of this object, something like: object[][] ...
philippe's user avatar
  • 118
0 votes
1 answer
704 views

I recently upgraded my .Net Framework XAF Winforms application.Net8 with 24.1.3 As follows public static void DoPrintReport(DevExpress.ExpressApp.View view, IReportDataV2 reportData, ...
Kirsten's user avatar
  • 18.8k
0 votes
0 answers
49 views

I have some code that creates a DOM from my schema: XmlSchemaImporter importer = new XmlSchemaImporter(new XmlSchemas { schema }); CodeNamespace code = new CodeNamespace(targetNamespace); ...
MakePeaceGreatAgain's user avatar
1 vote
1 answer
192 views

I'v been facing this problem for hours now. I'm playing a little bit with codedom but i get : a type or namespace Threading not found. My compilator code is this one: using Microsoft.CSharp; using ...
tiunas1320482's user avatar
0 votes
0 answers
871 views

im using codedom library to compile some codes in string format. i have to use this library in a .net core project. first i made a project with .net framework(because codedom works with .net framework)...
zhp's user avatar
  • 11
0 votes
2 answers
798 views

I want to force the compiled program to use the dll from the %temp% folder. However, if I do like that compars.EmbeddedResources.Add(Path.GetTempPath() + "\\Newtonsoft.Json.dll"); compars....
Thomas Edward's user avatar
2 votes
1 answer
361 views

I am using GenerateCodeFromCompileUnit and IndentedTextWriter to Generate Code from C# Source File. Doing this I am able to Generate a .cs file. But I am seeing a special character @ is inserted ...
coding_cs's user avatar
0 votes
1 answer
157 views

I am using CodeDom Compiler and Microsoft.CSharp, I am trying to embed a resource and call it. The reason I don't try to call properties is because I always get an error saying Properties does not ...
coderman69's user avatar
1 vote
0 answers
105 views

I am using CodeDOM in order to execute the method (written by the user). I compile source code into a binary assembly and then execute the method with the appropriate parameters. It works fine, ...
czeAso's user avatar
  • 11
0 votes
1 answer
42 views

I have some user inputs of type string[] for calculations. I want to compile them and get faster computation than any other method. User input strings: double _1 = 2 + 2; double _2 = _1 + Get_Variable(...
ArgeMuP's user avatar
0 votes
1 answer
262 views

I'm try to improve our dynamic reporting system. I would like to add event handle to the object I've dynamically created on the form. One of the functions of this would be to populate a listbox from ...
Sean ZA's user avatar
0 votes
2 answers
141 views

How to execute the following code in Codedom: if(statement) { for(int = 0; i < 10; i++) { Console.WriteLine(i); } } I'm familiar with CodeIterationStatement and ...
karan ugale's user avatar
0 votes
1 answer
182 views

C# supports the static modifier on a class definition to define a class which cannot be inherited, is sealed, and has only static members. VB.NET supports Module statement to define a reference type ...
defines's user avatar
  • 10.6k
2 votes
1 answer
3k views

My code is this: public static bool CompileClient(out string[] errors) { using (CodeDomProvider provider = CodeDomProvider.CreateProvider("CSharp")) { CompilerParameters cp = ...
Void's user avatar
  • 55
0 votes
1 answer
299 views

When trying to learn CodeDom under Ms visual studio, I noticed that the code generation seems to ignore the member attributes set for my class. This is my sample code using Microsoft.CSharp; using ...
JHBonarius's user avatar
  • 11.5k
0 votes
0 answers
167 views

Hi I am looking for little help here, I know I could generate code something like this var conditionMethod = new CodeConditionStatement(conditionStmt); conditionMethod.TrueStatements.Add(new ...
thatsalok's user avatar
  • 133
0 votes
1 answer
139 views

I'm coding a complex application that makes use of CodeDom to instantiate objects with reflection. It is, however, mixed between netstandard2.0 (the wrapper in between that also supports net461) and ...
Victor Lopez's user avatar
1 vote
2 answers
2k views

My build pipeline (Microsoft-hosted agent) has been running every morning for a couple of months but this morning it suddenly failed on the VSBuild task. The error is described as: "##[error]...
Halling's user avatar
  • 37
5 votes
1 answer
3k views

I am creating a designer surface and loading the controls to a runtime. I am having issues when deserializing/loading the controls to the runtime. All methods I have tried seem to have some type of ...
TommyBoii's user avatar
0 votes
0 answers
138 views

I am using CodeDom/Reflection to compile a C# script from a file. My current code is: string sourceCode = File.ReadAllText(item); var compParms = new CompilerParameters { GenerateExecutable = ...
user avatar
0 votes
2 answers
15k views

I'm working on a small project that involves compiling code. I keep getting this error: An unhandled exception of type System.ArgumentException occurred in mscorlib.dll Illegal characters in path. I'...
GRPAT's user avatar
  • 47
1 vote
0 answers
348 views

I have an application where user can create its own formula it works fine for all case but when i have DateTime Fields in my formula the compilation part of the code take around 132 ms for one formula ...
Mukesh Gupta's user avatar
0 votes
1 answer
157 views

I encounter an error while compiling a project containing the import of a namespace. I have a file called "Dissimulation.vb" in which the namespace "Dissimulation2" is declared. Here is his code: ...
Corentin Mar's user avatar
1 vote
1 answer
394 views

I want to code an app that allows the user to define GUI driven code snippets. In this context, I aim to send these snippet definitions to a service which will be able to compile and run it (code dom,...
lemon's user avatar
  • 346
2 votes
1 answer
241 views

I need to create an object like this (see below) using CodeDOM. internal static readonly Dynamic class1 = new Dynamic { VendorId = "VTS", Test = 10.33f }; What I did try has to create a ...
Kenneth's user avatar
  • 299

1
2 3 4 5
13