c# 288

#C#
c#生成缩略图代码

public void SaveThumbnail(string path, string thumbnailPath, int newWidth, int newHeight) …

c#
2016-03-01 806

#C#
c#如何不区分大小写判断字符串是否包含字串

c#的string类有Contains()方法,但是此方法是区分大小写的,当我们需要不区分大小写时,怎么办呢? 我们可以使用IndexOf() 将第二个参数设置为StringCom…

c#
2016-03-01 599

#C#
c#使用XSLT将xml文档转换为html文档

c#使用XSLT将xml文档转换为html文档 使用xslt可以将xml文档转成html,如下c#函数: 需要引用下面的命名空间: using System.Xml; using …

c#
2016-03-01 985

#C#
c#如何检测文本文件的编码

using System; using System.Text; using System.Text.RegularExpressions; using System.IO; na…

c#
2016-03-01 595

#C#
C#读取XML文件

try {     XmlDocument xmlDoc = new XmlDocument(); …

c#
2016-01-23 767

#C#
C#编写 HTML生成PDF

html中 <body>     <div style=”text-align:center;”>  …

c#
2016-01-23 716

#C#
C#中String类的几个方法(IndexOf、LastIndexOf、Substring)

String.IndexOf String.IndexOf 方法 (Char, Int32, Int32) 报告指定字符在此实例中的第一个匹配项的索引。搜索从指定字符位置开始,并检…

c#
2016-01-23 764

#C#
验证码C#实现代码

using System; using System.Data; using System.Configuration; using System.Web; using Syste…

c#
2015-12-08 467

#C#
C# 计算输入汉字的GBK编码,十六进制数输出

C# 计算输入汉字的GBK编码,十六进制数输出 using System; using System.Collections.Generic; using System.Linq;…

c#
2015-12-08 316

#C#
C# FTP上传下载 代码

using System; using System.Collections.Generic; using System.Linq; using System.Text; usin…

c#
2015-11-25 321

#C#
JS 实现 使用堆实现Top K 算法

1. 使用堆算法实现Top,时间复杂度为 O(LogN) function top(arr,comp){ if(arr.length == 0){return ;} var i =…

c#
2015-11-14 437

#C#
JS 实现快速幂算法

算法思路: 1. 如果是奇数幂,x * p(x,n-1)  2.如果是偶数幂,p(x , n/2) * p (x, n/2) 3. 如果n=0 ,返回1 时间复杂度 &n…

c#
2015-11-14 195
1 2 3 24