Using CodeDOM, is there a way to declare and set a private field.
Something like:
private const int tableConstant = 10;
//Provide the type and variable name
CodeMemberField mymemberfield = new CodeMemberField(fieldType,fieldName);
mymemberfield.Attributes = MemberAttributes.Private;
//Add the member to the class
newClass.Members.Add(mymemberfield);
Thanks,
Dan H.