FastDev介绍系列之[数据类型转换类]
2008-05-02 23:58
323 查看
这是FastDev.Core程序集中的一个类Converters, 用于数据类型转换.
使用方法: Converters.ChangeType<T>(toChangeObject) 或 toChangeObject.ChangeType<T>()
测试如下:
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Runtime.Remoting.Messaging;
using System.Threading;
namespace FastDev.Core.Test
源代码:
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Runtime.Remoting.Messaging;
using System.Threading;
namespace FastDev.Core.Test
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Linq;
using System.Collections;
namespace FastDev.Core
扩展方法:
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Collections;
namespace FastDev.Core
使用方法: Converters.ChangeType<T>(toChangeObject) 或 toChangeObject.ChangeType<T>()
测试如下:
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Runtime.Remoting.Messaging;
using System.Threading;
namespace FastDev.Core.Test
源代码:
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Runtime.Remoting.Messaging;
using System.Threading;
namespace FastDev.Core.Test
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Linq;
using System.Collections;
namespace FastDev.Core
扩展方法:
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Collections;
namespace FastDev.Core
相关文章推荐
- Trove系列(五)—Trove的数据存储管理程序类型和版本管理功能介绍
- (转) 淘淘商城系列——Redis五种数据类型介绍
- 淘淘商城系列——Redis五种数据类型介绍
- FastDev介绍系列之[数据规则验证](上)
- SQL Servr 2008空间数据应用系列三:SQL Server 2008空间数据类型 推荐
- 03_MyBatis基本查询,mapper文件的定义,测试代码的编写,resultMap配置返回值,sql片段配置,select标签标签中的内容介绍,配置使用二级缓存,使用别名的数据类型,条件查询ma
- iOS开发篇——OC之数据类型介绍 推荐
- caffe 学习系列 数据层介绍
- 精通Javascript系列之数据类型 字符串
- 3、MySQL的数据类型介绍
- DB2 Vs MySQL系列 | MySQL与DB2的数据类型对比
- Fortran 中的五种基本数据类型和派生类型介绍
- Java各种数据类型详细介绍及其区别
- Java面试题系列(1):数据类型
- 【ZZ】大数据架构师基础:hadoop家族,Cloudera系列产品介绍
- Python系列之 - python数据类型(一)
- Redis系列四:redis支持的数据类型
- python数据分析系列教程(1) —— 基础数据类型和内置容器
- 基础系列(2)—— 常用数据类型
- 简单介绍Python中的几种数据类型