说明 必须包含名空间System.Collection.Generic Dictionary里面的每一个元素都是一个键值对(由二个元素组成:键和值) 键必须是唯一的,而值不需要唯一的 键和值都可以是任何类型(比如:string, int, 自定义类型,等等) 通过一个键读取一个值的时间是接近...
转至:http://www.cnblogs.com/fwind/archive/2012/04/13/2445380.html在C#中,十进制和十六进制转换非常简单,方法如下:十进制转为十六进制:int a = 100;String strA = a.ToString("x8");十六进制转为十进制...
----------------sql错误在webservice中使用了这样的语句导致出错(因为要在后面使用CopImportTime列):string sCourtName = myDataTable.Rows[i]["CopZDMC"].ToString();string sSql = stri...
分类:
移动开发 时间:
2015-01-06 19:49:59
阅读次数:
161
private void RunBat(string batPath)
{
Process pro = new Process(); FileInfo file = new FileInfo(batPath);
pro.StartInfo.WorkingDirectory = file.Direct...
基础:1.囤位参数是字符串格式,如"A5/R8/D3",其中第一个字母是舱位信息,第二个参数是舱位数量,用Substring来截取字符串信息,来比较舱等和数量。 public String substring(int beginIndex, int endIndex) 第一个int为开始的索引,对应...
分类:
其他好文 时间:
2015-01-06 19:40:01
阅读次数:
128
返回“我的文档”路径字符串Environment.GetFolderPath(Environment.SpecialFolder.Personal)本技巧使用GetFolderPath方法来获取指向由指定枚举标识的系统特殊文件夹的路径。语法格式如下:public static string GetF...
Android中显示html文件要用Html.fromHtml(...)处理过的返回值,返回值可以成为setText()的参数。只显示带文本的html可以用下面的方法处理html文件。public static Spanned fromHtml (String source) 显示带图片的html....
分类:
移动开发 时间:
2015-01-06 19:30:34
阅读次数:
211
javascript学习笔记1
1、输出语句 ;
2、语法构成;
3、数据类型:typeof 操作符、Undefined 类型、Null 类型、Boolean 类型、Number 类型、String 类型
、Object 类型
分类:
编程语言 时间:
2015-01-06 19:30:06
阅读次数:
131
private?byte[]?String2hex(string?stmp)
{
????StringBuilder?sbtmp?=?new?StringBuilder();
????for?(int?i?=?0;?i?<?stmp.Length;?i++)
????{
????????if?(stmp[i]?>=?...
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
Hide Tags
Math String
...
分类:
其他好文 时间:
2015-01-06 18:06:01
阅读次数:
164