文章分类 -  .NET

摘要:class Program { static void Main(string[] args) { int obj = 2; Test<int> test = new Test<int>(obj); Console.WriteLine("int:" + test.obj); string obj2 = "hello world"; Test<string> te... 阅读全文
posted @ 2010-04-12 16:08 qinyi 阅读(313) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;namespace DAL //可以修改成实际项目的命名空间名称{ /// ... 阅读全文
posted @ 2010-03-22 17:54 qinyi 阅读(2496) 评论(0) 推荐(1)
摘要:using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;namespace DAL //可以修改成实际项目的命名空间名称{ /// ... 阅读全文
posted @ 2010-03-22 17:53 qinyi 阅读(596) 评论(0) 推荐(0)
摘要:为了达到不同的显示效果有时,我们需要对时间进行转化,默认格式为:2007-01-03 14:33:34 ,要转化为其他格式,要用到 DateTime.ToString的方法(String, IFormatProvider),如下所示: using System; using System.Globalization; String format="D"; DateTime date=DataTim... 阅读全文
posted @ 2010-03-22 17:52 qinyi 阅读(153) 评论(0) 推荐(0)
摘要:主要从内存中解释传值/传址/输出值的变化.从内存中看数据的变化和传递,是理解和编写高水平程序的最好途径! 阅读全文
posted @ 2008-02-25 22:30 qinyi 阅读(147) 评论(0) 推荐(0)
摘要:类的值在内存中的传递.从内存中看数据的变化和传递,是理解和编写高水平程序的最好途径! 阅读全文
posted @ 2008-02-25 20:54 qinyi 阅读(173) 评论(0) 推荐(0)
摘要:讨论值类型和引用类型在内存中的变化等.从内存中看数据的变化和传递,是理解和编写高水平程序的最好途径! 阅读全文
posted @ 2008-02-25 16:15 qinyi 阅读(225) 评论(0) 推荐(0)