如何改变用于实现接口以使用"int"的代码.而不是"System.Int32" [英] How to change code for implementing an interface to use "int" instead of "System.Int32"
问题描述
这是一件小事,但是当我自动实现一个接口时,我得到的方法签名的类型为'System.Int32',而不是简写的'int'.我查了一下代码片段,但看不到如何进行更改.看起来像MethodStub.snippet
是要更改的文件,但要更改什么?
It's a small thing, but when I auto-implement an interface, I get method signatures with types like 'System.Int32' instead of the shorthand 'int'. I looked up the snippets, but I don't see how to make this change. Looks like the MethodStub.snippet would
be the file to change, but what to change?
推荐答案
威廉,
感谢您在MSDN论坛中发帖.
Thank you for posting in MSDN forum.
此论坛是有关Visual Studio WPF/SL设计器,Visual Studio指导自动化工具包,开发人员文档和帮助系统以及Visual Studio编辑器的信息.
This forum is about Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
根据您的描述,它与语言更加相关,我会帮助您将此案移至 Visual Studio语言 >
According to your description, It's more related to the language, I help you move this case to
Visual Studio Languages > Visual C#
for much professional support.
感谢您的理解,
Thank you for your understanding,
最好的问候
这篇关于如何改变用于实现接口以使用"int"的代码.而不是"System.Int32"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!