随笔分类 -  C#

上一页 1 2 3 4 下一页

微软C#版SQLHelper.cs类
摘要:转载自:http://blog.csdn.net/fengqingtao2008/article/details/17399247 1 using System; 2 using System.Data; 3 using System.Xml; 4 using System.D... 阅读全文

posted @ 2015-07-11 13:59 ultrastrong 阅读(738) 评论(0) 推荐(0)

MSSQL - 多表查询
摘要:SELECT u.UserNumber, u.UserName, c.CarNumber, c.CarName, c.CarEngine, s.BuyLs, s.BuyTimeFROM Tb_Sale as sinner join Tb_User as u ON u.UserNumber = s.U... 阅读全文

posted @ 2015-06-29 20:49 ultrastrong 阅读(651) 评论(0) 推荐(0)

C#、WinForm、ASP.NET - Md5散列加密
摘要:MD5值概念解释:转载自:http://free0007.iteye.com/blog/2047163所 谓MD5,即"Message-Digest Algorithm 5(信息-摘要算法)",它由MD2、MD3、MD4发展而来的一种单向函数算法(也就是HASH算法),它是国际著名的公钥加密算法标准... 阅读全文

posted @ 2015-06-28 19:27 ultrastrong 阅读(407) 评论(0) 推荐(0)

C#、WinForm、ASP.NET - SQLHelper.cs
摘要:SQLHelper.csusing System;using System.Data;using System.Configuration;using System.Data.SqlClient;namespace DAL{ public class SQLHelper { ... 阅读全文

posted @ 2015-06-28 13:52 ultrastrong 阅读(437) 评论(0) 推荐(0)

MSSQL、C# 、Winform、ASP.NET - 数据库备份与还原模块
摘要:数据库备份还原类:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;//应用相应的命名空间using System.Window... 阅读全文

posted @ 2015-06-24 11:35 ultrastrong 阅读(420) 评论(0) 推荐(0)

C# - 推荐10本C#编程的最佳书籍
摘要:http://www.cnblogs.com/gc2013/p/4576345.html 阅读全文

posted @ 2015-06-22 12:19 ultrastrong 阅读(1438) 评论(0) 推荐(0)

C# - 数据库存取图片
摘要:1、创建数据表CREATE TABLE Tb_pic( ID int primary key identity(1, 1) not null, PictureBox varchar(max) )运行效果:2、代码:using System;using System.Collections.Gener... 阅读全文

posted @ 2015-06-22 11:31 ultrastrong 阅读(342) 评论(0) 推荐(0)

C# / MSSQL / WinForm / ASP.NET - SQLHelper中返回SqlDataReader数据
摘要:/// /// Execute a SqlCommand that returns a resultset against the database specified in the connection string /// using the pr... 阅读全文

posted @ 2015-06-13 11:41 ultrastrong 阅读(432) 评论(0) 推荐(0)

C# - Environment类,获取桌面的路径
摘要:private void button1_Click(object sender, EventArgs e) { string Path = Environment.GetFolderPath(Environment.SpecialFolder.D... 阅读全文

posted @ 2015-06-10 17:48 ultrastrong 阅读(494) 评论(0) 推荐(0)

C# - 正则表达式
摘要:验证电话号码的主要代码如下:public bool IsTelephone(string str_telephone){return System.Text.RegularExpressions.Regex.IsMatch(str_telephone, @"^(\d{3,4}-)?\d{6,8}$"... 阅读全文

posted @ 2015-06-06 22:24 ultrastrong 阅读(183) 评论(0) 推荐(0)

C# - GUID
摘要:1、C# GUID的使用:http://www.cnblogs.com/pato/archive/2010/01/09/1643008.html2、C#中使用GUID:http://www.cnblogs.com/dongqi/archive/2008/10/13/1310128.html3、C#中... 阅读全文

posted @ 2015-06-01 23:48 ultrastrong 阅读(166) 评论(0) 推荐(0)

C# - 简单工厂模式
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 简单工厂模... 阅读全文

posted @ 2015-05-28 12:26 ultrastrong 阅读(169) 评论(0) 推荐(0)

C# - Byte类型与String类型互转
摘要:1 byte[] bs = Encoding.UTF8.GetBytes("你的字符串");2 string str = Encoding.UTF8.GetString(bs); 阅读全文

posted @ 2015-05-27 17:24 ultrastrong 阅读(252) 评论(0) 推荐(0)

C# - 事件
摘要:/// /// 自定义事件-步骤: /// 1、声明关于事件的委托 /// 2、声明事件 /// 3、编写触发事件的方法 /// 4、创建事件处理程序 /// 5、注册事件处理程序 /// 6、在适当的条件下出发事件 /// Dog.cs代码: 1... 阅读全文

posted @ 2015-05-24 16:38 ultrastrong 阅读(166) 评论(0) 推荐(0)

C# - 委托_ 匿名方法
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 委托_例子... 阅读全文

posted @ 2015-05-24 16:05 ultrastrong 阅读(235) 评论(0) 推荐(0)

C# - 委托_求定积分通用方法
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 委托_例子... 阅读全文

posted @ 2015-05-24 15:46 ultrastrong 阅读(852) 评论(0) 推荐(0)

C# - 接口的继承
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespac... 阅读全文

posted @ 2015-05-24 14:52 ultrastrong 阅读(295) 评论(0) 推荐(0)

C# - 接口
摘要:微软认为,接口就是一个规范,只说不做,那么就意味着,他的成员必须由子类来实现,也就意味着,在接口中的成员必须是公共的和抽象的。接口就是一个抽象类,通过查看源码知道的;实现接口的成员,并不是来重写,实现之后的接口的成员就是类的成员;接口的方法只能通过接口对象来调用。什么时候接口对象---所谓的接口对象... 阅读全文

posted @ 2015-05-24 14:19 ultrastrong 阅读(212) 评论(0) 推荐(0)

C# - 多态性
摘要:abstract (抽象类,抽象方法) override(负责重写)对抽象类中的抽象方法进行重写。仔细研究代码:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.... 阅读全文

posted @ 2015-05-24 13:59 ultrastrong 阅读(221) 评论(0) 推荐(0)

C# - 使用皮肤
摘要:运行效果:项目目录结构:主窗体代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing... 阅读全文

posted @ 2015-05-22 08:29 ultrastrong 阅读(745) 评论(0) 推荐(0)

上一页 1 2 3 4 下一页