
C# Study
文章平均质量分 78
nehu
这个作者很懒,什么都没留下…
展开
-
ASP.NET WEB FORMS 页面间的传值方法
asp.net web forms 给开发者提供了极好的事件驱动开发模式。然而这种简单的应用程序开发模式却给我们带来了一些小问题,举个例子,在传统的asp应用程序中,你能够通过post方法很容易的把一个值或多个值从一个页面传送到另一个页面,用同样的方法在asp.net中实现有点麻烦。在这里,我们可以通过其他方式来解决这种情形。asp.net为我们提供了三种方式,一种是可以通过用querystri原创 2004-09-28 20:34:00 · 1388 阅读 · 0 评论 -
IDesign C#编程规范(一)
idesign发布了c#编程规范,小鸡射手从only4gurus下载浏览后决心抽时间翻译一下,以更好地学习。 目录内容如下: 1 命名规则和风格 naming conventions and style 2 编码惯例 coding practices 3 项目设置和结构 project settings and structure 4 fra原创 2004-09-28 20:37:00 · 2008 阅读 · 0 评论 -
IDesign C#编程规范(二)
2 编码惯例 coding practices 1. 避免在一个文件中放多个类。 avoid putting multiple classes in a single file. 2. 一个文件应该只对一个命名空间提供类型。避免在同一文件中有多个命名空间。 a single file should only contribute types to a single nam原创 2004-09-28 20:40:00 · 1172 阅读 · 0 评论 -
IDesign C#编码规范(三)
34. 避免使用new继承修饰符,而是使用override。 avoid using the new inheritance qualifier. use override instead. 35. 对非密封类总是将public和protected方法标记为virtual。 always mark public and protected methods as原创 2004-09-28 20:48:00 · 1120 阅读 · 0 评论 -
IDesign C#编程规范(四)
3 项目设置和项目结构Project Settings and Project Structure 1. 总是以4级警告建立项目(图略)。Always build your project with warning level 4 2. 在发布版中将警告作为错误(注意这不是VS.NET的缺省设置)(图略)。Treat warning as errors in Release build (原创 2004-09-28 20:56:00 · 1153 阅读 · 0 评论 -
IDesign C#编码规范(五)
4 Framework特别指导Framework Specific Guidelines 4.1 数据访问 Data Access 1. 总是使用类型安全的数据集或者数据表。避免使用原始的ADO.NET。Always use type-safe data sets or data tables . Avoid raw ADO.NET. 2. 访问数据库时总是使用事务。Always use tran原创 2004-09-28 20:58:00 · 1058 阅读 · 1 评论