且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

转换" VAR"在Visual Studio中明确的类型?

更新时间:2023-02-15 19:13:12

第三方工具,如ReSharper的可隐式转换类型的变量来显式类型,反之亦然。 ReSharper的让你大量转换全部或挑选要转换的实例。

Third party tools such as Resharper can convert implicitly typed variables to explicitly typed, and vice versa. Resharper lets you massively convert all of them or pick and choose which instances to convert.

不过,让我直接给你的 C#'变种'VS特定类型的效果,其中赞成和反对隐打字制成。

But let me direct you to C# 'var' vs specific type performance, where the arguments for and against implicitly typing are made.