随笔分类 - C#
摘要:using System;using System.Linq;using System.Web;using System.Collections.Generic;namespace SVL{ [Serializable] public class TableForGen { public string TableName; public ColumnInfo[] Columns; public T...
        阅读全文
                
摘要:using System; using System.Collections.Generic; using System.Text; using System.Reflection; namespace CrmWinLib.Resources { public class ReflectTool { public R execute(T executeObject...
        阅读全文
                
摘要:XPath使用路径表达式来选取XML文档中的节点或节点集。节点是通过沿着某个路径(path)或者步(step)来选取的。 XML实例文档 我们将在下面的例子中使用这个XML文档。 Harry Potter 29.99 Learning XML 39.95 选取节点 XPath使用路径表达式在XML文档中选取节点。节点是通过沿着某个路径或者step来选取的。 下面列出了最有用的路径...
        阅读全文
                
摘要:WCF的中的Endpoint结构,一个Endpoint就类似于xml web service中的一个asmx文件,它包括三个组成部分1)Address 2) Binding 3) Contract,此三者被称为组成Endpoint的"ABC".A解决了Endpoint在哪的问题,也就是"Where ...
        阅读全文
                
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ChickenAndEgg { class Program { static void Main(string[] args) { Eg...
        阅读全文
                
摘要:participants The classes and/or objects participating in this pattern are: Handler (Approver) defines an interface for handling the requests (optional) implements th...
        阅读全文
                
摘要:private void GetAllValues(XElement doc) { ChartValues = new List(); ChartKeys = new List(); var myValues = from pv in doc.Descendants("value") ...
        阅读全文
                
摘要:using System; using System.Collections.Generic; using System.Text; using System.Net; using System.IO; using System.Web.Services.Description; using System.CodeDom; using Microsoft.CSharp; using System....
        阅读全文
                
摘要:public void GreateMiniImage(string oldpath, string newpath, int tWidth, int tHeight) { try { System.Drawing.Image image = System.Drawing.Image.FromFile(...
        阅读全文
                
摘要:using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System...
        阅读全文
                
摘要:http://www.cnblogs.com/1-2-3/archive/2007/09/01/878246.html
        阅读全文
                
摘要:using System; using System.Data; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.Web.SessionState; using System.Drawing; using ...
        阅读全文
                
摘要:using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.W...
        阅读全文
                
摘要:using System.Text; using System.IO; string mbPath =Server.MapPath("template.htm"); Encoding code = Encoding.GetEncoding("gb2312"); StreamReader sr = null; ...
        阅读全文
                
摘要:using System.Diagnostics; if (!EventLog.SourceExists("EventLogDemoApp")) { EventSourceCreationData eventSourceData = new EventSourceCreationData("...
        阅读全文
                
摘要:DataTable行列转换的函数,找遍了网上都没找到,还是自己写了,这个函数在ContrastTable函数将被调用,ContrastTable用于实现在视图中对比数据,类似于pcoline的产品比较功能。是DataTable版的,DataSet版的就不贴了。 public DataTable cgDataTable(DataTable oldTable) { try ...
        阅读全文
                
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号