Hi,
Generating a .cs file using CodeDom. It generates the class fine.
But i have few queries about class generation.
1. How to create a protected member?
By default it generates a private method. To make it static say, I do
something like this -
CodeMemberMethod method = new CodeMemberMethod();
method.Name = "TestMethod";
method.Attributes = MemberAttributes.Static;
How make Protected ? There is no attribute called 'Protected' in the
class MemberAttributes !!!!
2. When set the attribute of the method to MemberAttributes.Public
....it generates a method "public virtual". I don't want a virtual in
there. How do I do it?
3. How do I set multiple attrubutes to a method like "public static" ?
Regards
Tapas