V
Venkat
Hi,
Can anyone let me know how to declare a local const in a method
using CodeDOM? I am trying to get an output that looks like this:
public void SomeMethod()
{
const int MyInteger = 56;
}
One workaround is to use a CodeSnippetExpression and output the literal
"const" keyword. But that'll make it specific to C#. I prefer to keep
the output language option flexible.
Thanks in advance for your help.
-Venkat
Can anyone let me know how to declare a local const in a method
using CodeDOM? I am trying to get an output that looks like this:
public void SomeMethod()
{
const int MyInteger = 56;
}
One workaround is to use a CodeSnippetExpression and output the literal
"const" keyword. But that'll make it specific to C#. I prefer to keep
the output language option flexible.
Thanks in advance for your help.
-Venkat