K
Kai Huener
ello,
I try to make a function, adding automatically all functions to a new class
which are necessary because of implemented Interfaces or inherited, abstract
classes. In the last case, it is necessary to have two attributes in front
of the function, like protected override void Foo(){}. And now my question:
1.: I can't find the Attribute "protectd" in the enum
"System.CodeDom.MemberAttributes". Why? Is it the wrong place to look?
2.: Why isn't it possible to add more than one Attribute to a new Method? I
can set the Property "System.CodeDom.CodeMemberMethod.Attributes" only to
one Attribute. How can I declare a new method to "public static" or
"protected override?.
Every Hint can be helpful for me, even a possibility to solve my problem in
a different way, perhaps there is a better way to success?
Best Regards,
Kai Hüner
I try to make a function, adding automatically all functions to a new class
which are necessary because of implemented Interfaces or inherited, abstract
classes. In the last case, it is necessary to have two attributes in front
of the function, like protected override void Foo(){}. And now my question:
1.: I can't find the Attribute "protectd" in the enum
"System.CodeDom.MemberAttributes". Why? Is it the wrong place to look?
2.: Why isn't it possible to add more than one Attribute to a new Method? I
can set the Property "System.CodeDom.CodeMemberMethod.Attributes" only to
one Attribute. How can I declare a new method to "public static" or
"protected override?.
Every Hint can be helpful for me, even a possibility to solve my problem in
a different way, perhaps there is a better way to success?
Best Regards,
Kai Hüner