c#
文章平均质量分 64
myelse
Miss
展开
-
c# MD5加密算法的实例
using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; namespace md5 { class Program { static void Main(string[] args) { Con原创 2009-04-01 09:01:00 · 374 阅读 · 0 评论 -
写文本文件
/// /// TextOper 文本文件操作类/// public class TextOper{ public TextOper() { } //新建一个文件 public bool CreateFile(string strPath,string strName) { if (File.Exists(strPath + strNam原创 2009-04-02 10:20:00 · 325 阅读 · 0 评论 -
新建XML文档
public bool CreateXML(string strXMLPath, string strXMLName, string[] strNode) { try { if (!Directory.Exists(strXMLPath)) { Directory.CreateDir原创 2009-04-01 09:07:00 · 467 阅读 · 0 评论 -
DataSet简单分页
/// /// 分页获取数据 /// /// 页面大小 /// 页码 /// public DataSet GetNewsList(int iCurrentSize, int iCurrent) { DataSet mDsNews = GetNewsTypeList(); DataSet mreDsNews = n原创 2009-04-02 10:17:00 · 776 阅读 · 0 评论 -
String.Format 和builder.AppendFormat实现代码
String.Format 实现代码: public static string Format(IFormatProvider provider, string format, params object[] args){ if ((format == null) || (args == null)) { throw new ArgumentNullEx转载 2009-04-17 15:37:00 · 2156 阅读 · 0 评论 -
CodeSmith自动生成代码常用的类型转换函数
using System;using System.Text;using System.ComponentModel;using CodeSmith.Engine;using System.Data;using SchemaExplorer;namespace CodeTemplateRule{ /**//// /// CodeSmith自动生转载 2009-04-22 10:41:00 · 887 阅读 · 0 评论 -
C# 图片裁剪
/// /// 缩小裁剪图片 /// /// 要缩小裁剪图片宽度 /// 要缩小裁剪图片长度 /// 要处理图片路径 /// 处理完毕图片路径 public void ImgReduceCutOut(int int_Width, int int_Heig原创 2010-01-14 15:56:00 · 4104 阅读 · 3 评论 -
数字转换成大写金额
<br />// 数字转换成大写金额// 例如:(new Money(200)).ToString() == "贰佰元"namespace Skyiv.Util{ using System.Text; class Test { static void Main() { for (;;) { System.Console.Write("金额: "); string s = System.Cons转载 2011-03-10 10:04:00 · 1093 阅读 · 0 评论