开发者

Method name containing a dash?

How c开发者_如何学运维an I create a method that contains a dash in the name?

public void my-method-name()
{
}


You can't. Use ActionNameAttribute.


You cannot. It violate the identifier specification. But you can put other Unicode character set. e.g you can give a function name.

void 中國話 (int i){
}

in .NET and you can use _ underscore instead of -.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜