C#
文章平均质量分 87
JarvisH
这个作者很懒,什么都没留下…
展开
-
ref与out之间的区别
ref和out都是C#中的关键字,所实现的功能也差不多,都是指定一个参数按照引用传递。 对于编译后的程序而言,它们之间没有任何区别,也就是说它们只有语法区别。 总结起来,他们有如下语法区别: 1、ref传进去的参数必须在调用前初始化,out不必,即: int i; SomeMethod( ref i );//语法错误 SomeMethod( out i );//通过转载 2015-11-19 00:07:29 · 896 阅读 · 0 评论 -
LinQ 基础
DeptEntity.cs 实体源码: class DeptEntity { public int DeptNo { get; set; } public string DName { get; set; } public string Loc { get; set; } } class EmpEntity原创 2015-12-01 00:24:50 · 449 阅读 · 0 评论 -
MVC 过滤器(Filters)
过滤类型(Filters Type) 接口(Interface) 默认实现(Default Implementation) 描述(Description) Authorization IAuthorizationFilter AuthorizeAttribute 首先运行,在其他过滤器的操作方法 Action IActionFilter ActionFilt原创 2015-12-06 13:39:54 · 542 阅读 · 0 评论