摘要: using System;using System.Collections.Generic;using System.Web;using System.Runtime.Serialization;using System.IO;using System.Runtime.Serialization.J... 阅读全文
posted @ 2014-05-14 17:51 Kelly_HanShuai 阅读(161) 评论(0) 推荐(0) 编辑
摘要: /// ///使用SqlBulkCopy方式插入数据 /// /// privatestaticlongSqlBulkCopyInsert() { Stopwatchstopwatch=newStopwatch(); stopwatch.Start(); DataTabledataTable=GetTableSchema(); for(inti=0;i<count;i++) { DataRowdataRow=dataTable.NewRow(); dataRow[2]=Guid.NewGuid(); dataTable.Rows.Add(dataRow); } //Console.Wri 阅读全文
posted @ 2013-08-23 09:41 Kelly_HanShuai 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 假设你的类名是MyClass,方法名是Add object obj = Assembly.Load(程序集).CreateInstance("MyNamespace.MyClass", false); object obj2 = Type.GetType("MyNamespace.MyClass").GetMethod("Add").Invoke(obj,null); obj2 是返回值,举例:namespace MyNamespace public class MyClass { public int Add(int a, int 阅读全文
posted @ 2013-07-11 22:00 Kelly_HanShuai 阅读(229) 评论(0) 推荐(0) 编辑