- 博客(10)
- 收藏
- 关注
原创 得到c++的运行时间
#include #includeusing namespace std;void GetTime(int);void main(){ GetTime();}void GetTime(){ LARGE_INTEGER freq; //频率 LARGE_INTEGER start_t, stop_t; d
2013-11-20 10:02:56
714
原创 javascript 中的null 和undefined
很简单一句话 null 是 有明确类型没有值的这一类表达式返回的值 typeof 之后 是 object , undefined 连类型 都不知道的得这一类表达返回值 typeo undefined 为 undefined
2013-03-04 03:21:42
263
原创 一般应用程序(*.ashx)注意事项
当前上下文 httpcontext.current 获取 get 或post httpcontext.current.request.methodetype(得到是大写字符串)获取form中的数据 httpcontext.current.request.form[index or name];验证是cs两边都要验证获取服务器文件路径 httpcontext.current.s
2013-02-04 00:07:01
475
原创 c# 序列化和发序列化最经典例子
首先定义一个person 类using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace test{ [Serializable] class PerSon
2013-02-03 00:19:20
1171
转载 传智播客
SqlCommand的SqlDataReader();方法返回了一个SqlDataReader的对象,这个返回值是用于操作我们sql语句得到的结果集。执行完sql得到的一个结果集,这个结果集存储在数据库上,还没有取回到我们的程序中,要想取回到程序中,要调用dr.Read();方法,每调用一次Read方法,dr都会去数据库上的结果集中取一条记录,如果能取到下一条记录,则返回值为true,否则
2013-02-02 23:28:49
768
原创 ADO.NET连接池
SqlConnection coon=new SqlConnection ("server=.;database=itcast;uid=sa;pwd=123")当运行这条语句时, conn 会到 连接池里面找 有没有和conn一样的连接对像,如果有,连接池就会返回这个连接对像给conn,如果没有,就会在队中重新new 一个新的连接对象, 当 conn .close时,就会返回这个连接对象给连接
2013-02-02 23:13:10
297
原创 model 类 的Nullable<T>
类型“string”必须是不可为 null 的值类型才能用作泛型类型或方法“System.Nullable”中的参数“T”d:\my documents\visual studio 2012\Projects\ReflationSystem\ReflationSystem\Student.cs18 25 ReflationSystem看到这个,就要主要到错误 类型“stri
2013-02-02 01:49:59
453
原创 c#泛型继承的里氏原则问题
class Dog { public virtual void SayHi() { Console.WriteLine("i am the dog"); } } class MiniDog:Dog { public override void SayHi()
2013-01-31 21:04:29
371
原创 C# MD5加密
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using
2013-01-29 20:17:10
1118
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人