C# keywords as a variable

前端 未结 4 2104
一向
一向 2020-12-01 23:38

In VB.NET, you can surround a variable name with brackets and use keywords as variable names, like this:

Dim [goto] As String = \"\"

Is the

4条回答
  •  暖寄归人
    2020-12-02 00:03

    With a @

    public IActionResult Submit(Guid? id, string type, string key, string @event)
    {
    
    }
    

提交回复
热议问题