- 博客(5)
- 收藏
- 关注
转载 c# 反射---简单小例子
/////接口using System;usingSystem.Text;namespaceJiang.IForm{ /// ///反射要实现该接口 /// public interfaceIForm { /// ///form test /// str
2015-02-08 14:05:02
319
转载 c# remoting 小实例
///先定义接口///using System;using System.Text;namespace IComm{ /// /// send messages delegate /// /// public delegate void SendEventHandler(string Ms); public interface IC
2015-02-08 13:56:52
413
转载 C#遍历指定文件夹中的所有文件
string folderFullName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);C#遍历指定文件夹中的所有文件 DirectoryInfo TheFolder=new DirectoryInfo(folderFullName);//遍历文件夹foreach(DirectoryInfo
2015-02-03 14:28:58
305
转载 反序列化无法找到程序集
提示找不到程序集. 原因是序列化时把序列化类的命名空间等信息保存了,但应用程序和类库的命名空间可能是不一样的,所以提示找不到程序集. 解决方法如下: 1.将dll加入强名称,注册到全局程序集缓存中 2.在反序列化使用的IFormatter对象加入Binder属性,使其获取要反序列化的对象所在的程序集
2015-01-19 16:41:45
1141
转载 C# GZip对字符串压缩和解压
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.IO.Compression; using System.Data; namespace HelperProjects
2015-01-19 13:49:37
1832
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人