关于ASP.NET MVC框架的代码提示汉化实现方法
2009-06-08 14:55
716 查看
本人前几天刚刚接触ASP.NET MVC框架,发现该框架里面得类、方法、以及属性等在vs2008中的代码提示是英文的,个人感觉使用起来非常不方便,不知大家感觉如何,经过我的一番研究,终于发现了汉化的方法,其实很简单,在MVC的安装目录的“Assemblies”文件夹中有两个文件分别为:1、System.Web.Mvc.dll(MVC的程序集)2、System.Web.Mvc.xml此文件为xml文件,用记事本就可以打开,当然最好用va2008打开,打开后的问价内容如下:
<?xml version="1.0"?>
<doc>
<assembly>
<name>System.Web.Mvc</name>
</assembly>
<members>
<member name="T:System.Web.Mvc.TempDataDictionary">
<summary>
<!--Represents a set of data that persists only from one request to the next-->.
代表一个数组
</summary>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.#ctor">
<summary>
初始化一个新的示例 <see cref="T:System.Web.Mvc.TempDataDictionary"/> class.
</summary>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
<summary>
初始化一个新的示例 <see cref="T:System.Web.Mvc.TempDataDictionary"/> class.
</summary>
<param name="info">The info.</param>
<param name="context">The context.</param>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.Load(System.Web.Mvc.ControllerContext,System.Web.Mvc.ITempDataProvider)">
<summary>
加载一个指定的 controller context.
</summary>
<param name="controllerContext">The controller context.</param>
<param name="tempDataProvider">The temp data provider.</param>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.Save(System.Web.Mvc.ControllerContext,System.Web.Mvc.ITempDataProvider)">
<summary>
存储在指范围的 controller context.
</summary>
<param name="controllerContext">The controller context.</param>
<param name="tempDataProvider">The temp data provider.</param>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.Add(System.String,System.Object)">
<summary>
Adds an element with the provided key and value to the <see cref="T:System.Collections.Generic.IDictionary`2"/>.
</summary>
<param name="key">The object to use as the key of the element to add.</param>
<param name="value">The object to use as the value of the element to add.</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="key"/> is null.
</exception>
<exception cref="T:System.ArgumentException">
An element with the same key already exists in the <see cref="T:System.Collections.Generic.IDictionary`2"/>.
</exception>
<exception cref="T:System.NotSupportedException">
The <see cref="T:System.Collections.Generic.IDictionary`2"/> is read-only.
</exception>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.Clear">
以其中一个节点为例讲解:
<members>
<member name="T:System.Web.Mvc.TempDataDictionary">//类名称
<summary>
<!--Represents a set of data that persists only from one request to the next-->//此处就是该类的详细解释(已被我注释掉)
代表一个数组//此处是我用金山词霸翻译过来的详细解释
</summary>
</member>
由于本人E文不是一般的烂,所以希望E文高手能够将这个文件翻译一下,造福广大程序员,哈哈!
最后说一下如何使用汉化后的System.Web.Mvc.xml文件,很简单将原来的覆盖即可(强烈建议:覆盖前先备份System.Web.Mvc.xml)。
由于本人接触MVC不久,不知我说的方法是否可行,本文也只是向抛砖引玉,希望高手们多多指教!
<?xml version="1.0"?>
<doc>
<assembly>
<name>System.Web.Mvc</name>
</assembly>
<members>
<member name="T:System.Web.Mvc.TempDataDictionary">
<summary>
<!--Represents a set of data that persists only from one request to the next-->.
代表一个数组
</summary>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.#ctor">
<summary>
初始化一个新的示例 <see cref="T:System.Web.Mvc.TempDataDictionary"/> class.
</summary>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
<summary>
初始化一个新的示例 <see cref="T:System.Web.Mvc.TempDataDictionary"/> class.
</summary>
<param name="info">The info.</param>
<param name="context">The context.</param>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.Load(System.Web.Mvc.ControllerContext,System.Web.Mvc.ITempDataProvider)">
<summary>
加载一个指定的 controller context.
</summary>
<param name="controllerContext">The controller context.</param>
<param name="tempDataProvider">The temp data provider.</param>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.Save(System.Web.Mvc.ControllerContext,System.Web.Mvc.ITempDataProvider)">
<summary>
存储在指范围的 controller context.
</summary>
<param name="controllerContext">The controller context.</param>
<param name="tempDataProvider">The temp data provider.</param>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.Add(System.String,System.Object)">
<summary>
Adds an element with the provided key and value to the <see cref="T:System.Collections.Generic.IDictionary`2"/>.
</summary>
<param name="key">The object to use as the key of the element to add.</param>
<param name="value">The object to use as the value of the element to add.</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="key"/> is null.
</exception>
<exception cref="T:System.ArgumentException">
An element with the same key already exists in the <see cref="T:System.Collections.Generic.IDictionary`2"/>.
</exception>
<exception cref="T:System.NotSupportedException">
The <see cref="T:System.Collections.Generic.IDictionary`2"/> is read-only.
</exception>
</member>
<member name="M:System.Web.Mvc.TempDataDictionary.Clear">
以其中一个节点为例讲解:
<members>
<member name="T:System.Web.Mvc.TempDataDictionary">//类名称
<summary>
<!--Represents a set of data that persists only from one request to the next-->//此处就是该类的详细解释(已被我注释掉)
代表一个数组//此处是我用金山词霸翻译过来的详细解释
</summary>
</member>
由于本人E文不是一般的烂,所以希望E文高手能够将这个文件翻译一下,造福广大程序员,哈哈!
最后说一下如何使用汉化后的System.Web.Mvc.xml文件,很简单将原来的覆盖即可(强烈建议:覆盖前先备份System.Web.Mvc.xml)。
由于本人接触MVC不久,不知我说的方法是否可行,本文也只是向抛砖引玉,希望高手们多多指教!
相关文章推荐
- sql server 关于表中只增标识问题 C# 实现自动化打开和关闭可执行文件(或 关闭停止与系统交互的可执行文件) ajaxfileupload插件上传图片功能,用MVC和aspx做后台各写了一个案例 将小写阿拉伯数字转换成大写的汉字, C# WinForm 中英文实现, 国际化实现的简单方法 ASP.NET Core 2 学习笔记(六)ASP.NET Core 2 学习笔记(三)
- ASP.NET MVC验证框架中关于属性标记的通用扩展方法
- 一起谈.NET技术,ASP.NET MVC验证框架中关于属性标记的通用扩展方法
- 《ASP.NET MVC验证框架中关于属性标记的通用扩展方法》之继续扩展
- 关于jQuery在Asp.Net Mvc 框架下Ajax文件上传的实现
- 关于jQuery在Asp.Net Mvc 框架下Ajax文件上传的实现
- 关于ASP.NET MVC中Response.Redirect和RedirectToAction的BUG (跳转后继续执行后面代码而不结束进程)以及处理方法
- ASP.NET MVC验证框架中关于属性标记的通用扩展方法
- ASP.NET中的几种弹出框提示基本实现方法
- 关于云服务器的ASP.Net MVC网站实现被外网访问
- 关于云服务器的ASP.Net MVC网站实现被外网访问
- Asp.Net异常:"由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值"的解决方法
- ASP.NET MVC 中实现基于角色的权限控制的处理方法
- 关于IIS+ASP.net 中客户端访问出现的用户和密码提示解决方法
- ASP.NET MVC中实现多个按钮提交的几种方法
- ASP.NET MVC 3仿Server.Transfer效果的实现方法
- 浅谈ASP.NET MVC 防止跨站请求伪造(CSRF)攻击的实现方法
- ASP.NET实现MVC中获取当前URL、controller及action的方法
- 用Fine Uploader+ASP.NET MVC实现ajax文件上传[代码示例]