![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
giantboy520
这个作者很懒,什么都没留下…
展开
-
整理出C#(.net)的常用函数和方法集 (转载)
1、DateTime 数字型System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curren转载 2006-01-22 09:13:00 · 630 阅读 · 0 评论 -
正则表达式收藏
【日期的验证表达式】 A.以下正确的输入格式: [2004-2-29], [2004-02-29 10:29:39 pm], [2004/12/31] ^((/d{2}(([02468][048])|([13579][26]))[/-///s]?((((0?[13578])|(1[02]))[/-///s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469]原创 2006-01-26 10:28:00 · 900 阅读 · 0 评论 -
如何用C#来部署数据库
现在好多程序,都是与数据库相关的,因此在做安装的时候,部署数据库看似是一件很复杂的事情。其实就我个人而言,部署数据库是很简单,大致的思路如下:1. 用本身的DBMS来产生数据库创建的SQL脚本;2. 接下来就是写程序来执行SQL脚本,从而达到创建数据库的目的。 以下用一个举例来说明,数据库服务器用的是SQL Server。 首先要在数据库生成好的SQL脚本最前头,加入转载 2006-09-16 11:02:00 · 770 阅读 · 0 评论 -
经典算法-C#四种排序算法
【导读】本文介绍了C#的四种排序算法:冒泡排序、选择排序、插入排序和希尔排序 冒泡排序using System;namespace BubbleSorter { public class BubbleSorter { public void Sort(int [] list) { int i,j,temp; bool done=false; j=1; whil转载 2007-01-03 16:09:00 · 513 阅读 · 0 评论