How do I set a member field to a value using codeDom namespace
Posted
by hajpoj
on Stack Overflow
See other posts from Stack Overflow
or by hajpoj
Published on 2010-05-15T00:12:49Z
Indexed on
2010/05/15
0:24 UTC
Read the original article
Hit count: 555
c#
|code-generation
Hi I want to create code that is something like this:
public string randomString = "some Random String";
How can i set a value to the member field that I created using:
CodeMemberField field = new CodeMemberField("System.String", "randomString");
Thanks,
© Stack Overflow or respective owner