var

See the type of a var in Visual Studio

本秂侑毒 提交于 2020-12-04 19:49:15
问题 Is there a way to see the type of a var within the Visual Studio 2013 code editor? When I have a crazy linq query it would be nice to see what the resulting type will be. I don't want to replace the var keyword with the actual type, I just want to see what it is. 回答1: You can get it by Hovering on particular var keyword. For example see in below image the tooltip shows the details. 回答2: There is also a keyboard shortcut that will show you. Put the cursor over var and type: ctrl + k , i 回答3:

See the type of a var in Visual Studio

♀尐吖头ヾ 提交于 2020-12-04 19:48:54
问题 Is there a way to see the type of a var within the Visual Studio 2013 code editor? When I have a crazy linq query it would be nice to see what the resulting type will be. I don't want to replace the var keyword with the actual type, I just want to see what it is. 回答1: You can get it by Hovering on particular var keyword. For example see in below image the tooltip shows the details. 回答2: There is also a keyboard shortcut that will show you. Put the cursor over var and type: ctrl + k , i 回答3: