博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年10月13日

摘要: 葡萄城控件技术团队博客 阅读全文

posted @ 2011-10-13 15:30 itcfj 阅读(280) 评论(0) 推荐(0) 编辑

摘要: 谈谈Nullable<T>的类型转换问题本篇文章讨论可空值类型(Nullable<T>)的转换,却确地说是如何将一种类型的值对象转换成相应的可空值。这来源于今天我们的一个成员遇到的一个小问题,我经过一些整理写了这篇文章。虽然没有什么技术含量可言,也希望对某些读者带来帮助。目录 一、四种典型的值类型转换方式 二、当类型转换遭遇Nullable<T> 三、将基于Nullable<T>的类型转换实现在扩展方法中 四、进一步完善扩展方法ConvertTo 五、谈谈NullableTypeConverter一、四种典型的类型转换方式对于类型转化,或者进一步 阅读全文

posted @ 2011-10-13 11:44 itcfj 阅读(145) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Model;using System.Data;using System.Data.Objects;public partial class _Default : System.Web.UI.Page{ testdbEntities db = new testdbEntities(); protected ... 阅读全文

posted @ 2011-10-13 10:19 itcfj 阅读(691) 评论(0) 推荐(0) 编辑