Auto-Generating a member field in a class using CodeDOM in .NET
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi All, I have used CodeDOM in .net to auto-generate C# code, which in essence generates a class file having a class along with its member fields, methods and properties. However, i don know how to generate the following line of code: private const string NAME = "CSharp"; Here, i have a generate a CodeMemberField which is a constant string with a private specifier as shown above. Please send me the sample code which would help me to auto-generate the above line of code.