摘要:
在工作Research的时候,收集了一些Silverlight第三方控件. OpenSource Porject: 1. Siverlight ToolKit (OpenSource) http://www.codeplex.com/Silverlight 2. GOA ToolKit for Silverlight (OpentSource) http://www.netikatech... 阅读全文
摘要:
1. XDocument doc = XDocument.Parse(returnValue.Trim()); var cdistinct = doc.Descendants("reportname").Where(p => Convert.ToString(p.Element(x).Value).Trim() != "").Select(p => Convert.ToString(p... 阅读全文
摘要:
public string SaveFile(byte[] binData, string filePath, string fileName, int type, string fileType) { ///定义并实例化一个内存流,以存放提交上来的字节数组。 MemoryStream m = new MemoryStream(binData); FileStream fileStream = n... 阅读全文
摘要:
public class DataToXml { /**//// <summary> /// 将DataTable对象转换成XML字符串 /// </summary> /// <param name="dt">DataTable对象</param> /// <returns>XML字符串</returns> public st... 阅读全文
摘要:
/// <summary>/// Author:Lirongc/// Create Date: 2009-8-14 17:15:59/// Description: DataSet助手/// </summary>public class DataSetHelper{ private class FieldInfo { public string RelationName; ... 阅读全文
摘要:
datatable 转为byte[] 以及把byte[]转为datatable 其实就是系列化与反系列的问题.实际上所有的类都可以使用byte[]形式表示,因为他在内存中的数据本身就是byte 而对于你说的String进行 System.Text.Encoding.BigEndianUnicode.GetBytes System.Text.Encoding.Default.GetBytes ... 阅读全文
摘要:
DataTable或者List <ComInfo>中的数据是: Company CaseNum 中国台湾 0001 中国台湾 0002 中国台湾 0002 香港 0001 香港 0001 要求结果: Company Totala Totalb 中国台湾 3 2 香港 2 1 注:按company分组,取得组数(Totala),然后再按company+CaseNum分... 阅读全文