Mr
Sun Jun 13 08:45:43 CDT 2004
Thanks, but I wasn't referring to a const.
ReadOnly is different.
However, I now realize that CodeDom is far from being able to represent all
the features of C# or VB.NET. Previously I had the mistaken impression that
I could do anything in C# with CodeDOM. Now I realize that CodeDOM can't
even do switch statements, etc (without using snippets). Therefore, I'm sure
it cannot do readonly fields.
This leaves two choices:
1. use code snippets and/or
2. use one of the alternative code generation techniques mentioned in the
new book I just received (Code Generation in Microsoft .Net).
Regards,
Mountain
"Gabriele G. Ponti" <ggponti.at.hotmail.com> wrote in message
news:utBSy0KUEHA.2564@TK2MSFTNGP11.phx.gbl...
> Do you mean a constant?
>
> See the example here:
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemCodeDomCodeMemberFieldClassTopic.asp
>
>