我想使用codedom在其方法签名中动态生成一个带有'new'关键字的方法。想产生这样的东西
private new void MyMethod()
{
}
就像是:
CodeMemberMethod myMethodMethod = new CodeMemberMethod();
myMethodMethod.Attributes = MemberAttributes.Private | MemberAttributes.New;
myMethodMethod.Name = "MyMethod";
这是一个MemberAttributes
:MemberAttributes.New
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句