...
首页> 外文期刊>Visual Studio Magazine >Generate Code From Custom File Formats
【24h】

Generate Code From Custom File Formats

机译:从自定义文件格式生成代码

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

You're writing the same code over and over again with only minor changes, and you're about to do it again. Stop. If you're creating a standalone class (either a class that you'll call from your application's code or a class that you can inherit from), build a custom tool that writes the code for you now and every time you'll need it. You're already using a custom tool every time you add a dataset to an application. VS sets the CustomTool property of the dataset's .XSD to MSDataSetGenerator. Whenever you close the .XSD file-or, in Visual Studio 2008 (VS 2008), whenever you switch away from the file-VS passes MSDataSetGenerator the contents of the .XSD file, which MSDataSetGenerator then converts to code for the .XSD's code file and hands back to Visual Studio.
机译:您只需要细微的更改就可以一遍又一遍地编写相同的代码,而您将要再次做一次。停止。如果您要创建一个独立的类(可以从应用程序的代码调用的类或可以从其继承的类),请构建一个自定义工具,该工具可以随时为您编写代码。每次将数据集添加到应用程序时,您已经在使用自定义工具。 VS将数据集的.XSD的CustomTool属性设置为MSDataSetGenerator。每当关闭.XSD文件时-或在Visual Studio 2008(VS 2008)中,每当关闭文件时,VS都会将.XSD文件的内容传递给MSDataSetGenerator,然后MSDataSetGenerator将其转换为.XSD代码文件的代码然后回到Visual Studio。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号