C# @ modifier for methods parameters

后端 未结 6 1573
心在旅途
心在旅途 2021-02-18 13:56

I was using ReSharper plugin on VS2010 and i was generating an interface method. ReSharper put an @ on the parameter name. WHat is that used for?

int Count(Func&         


        
6条回答
  •  一向
    一向 (楼主)
    2021-02-18 14:34

    It allows you to use reserved keywords as variable names.

提交回复
热议问题