codedom
C# CodeDom - Create new field within CodeMemberMethod
In order to \"populate\" a CodeDom class I can create a new field which allows me to generate random names for strings, bytes, etc. I then created a new method within my class via CodeDom but I am hav[详细]
2023-03-19 11:58 分类:问答C# Using CodeDom to add variables as part of a class
I am attempting to create the following code through the use of CodeDom: public partial class mainClass[详细]
2023-03-19 04:42 分类:问答Errors while attempting to generate code using Codedom
My goal: To create a windows form application (executable) through the use of CodeDom. By this I mean I would like a form (with some code behind the form) and turn it into an executable file (as if I[详细]
2023-03-18 00:52 分类:问答Changing VB.NET code programmatically
I want to open an existing VB class file, add a few properties and close it again. Simple enough, I thought: Take the CodeDom, a VBCodeProvider, parse the code (using the Parse-method), then identif[详细]
2023-03-16 05:50 分类:问答Programmatic API for the Code Generators of LINQ-to-SQL and Entity Framework
What options do I have for generating class definitions for LINQ-to-SQL and Entity Framework context and data entity objects?I understand how to use the Visua开发者_StackOverflowl Studio tools, but is[详细]
2023-03-15 08:07 分类:问答CodeDom compiler: Type or namespace 'Foo' does not exist in the namespace 'System'
I\'m writing a tool that generates C# code, and am writing unit tests to go with it. One of the tests I want to do is to run the tool and compile the results, so I can examine the assembly with refle[详细]
2023-03-15 04:50 分类:问答CppCodeGenerator parse managed C++
I am looking to parse managed C++ files into a CodeDOM tree (or any other c# representation, for that matter). I see that CppCodeGenerator has been removed in .NET4, and it does not provide a Parse(st[详细]
2023-03-12 21:46 分类:问答Creating extension method using CodeDOM
I\'m trying to create an extension method using CodeDOM. There doesn\'t seem to be any support for them and using ExtensionAttribute (which C# uses internally to mark extension methods) is not allowed[详细]
2023-03-12 14:06 分类:问答Extra parentheses in CodeDom-generated code
I\'m using CodeDom to generate code to be compiled later, and I\'ve noticed that certain constructs create extra sets of parentheses. While I know they don\'t affect anything, they do look strange.[详细]
2023-03-09 14:35 分类:问答Use CodeDom to convert one language to another?
You can run my source as an example http://www.pastie.org/1969780 I essentially took this and played around with it http://msdn.microsoft.com/en-us/library/ms404245.aspx[详细]
2023-03-08 09:25 分类:问答