幽幽Net

导航

2016年2月27日 #

C# 动态加载程序集dll (实现接口)

摘要: 一、程序集(接口程序集):LyhInterface.Dll namespace LyhInterface { public interface ILyhInterface { void Run(); } } 二、程序集(实现接口的程序集):LyhClassLibrary1.dll, LyhClass 阅读全文

posted @ 2016-02-27 23:05 幽幽Net 阅读(5981) 评论(0) 推荐(0)

Process类

摘要: public bool Process.Start () 启动(或重用)此 Process 组件的 StartInfo 属性指定的进程资源,并将其与该组件关联。 public bool Process.Start (ProcessStartInfo) 启动由包含进程启动信息(例如,要启动的进程的文件 阅读全文

posted @ 2016-02-27 20:30 幽幽Net 阅读(461) 评论(0) 推荐(0)

注册表信息(安装包ProductCode,设置启动运行)

摘要: 一、获取安装包ProductCode后,再获取安装包DisplayVersion,比对安装包版本,确定是否更新当前应用(重新下载安装包,并运行安装包) //获取当前应用程序的安装包的ProductCode属性值 (更多信息请查看注册表) public static string GetProduct 阅读全文

posted @ 2016-02-27 20:08 幽幽Net 阅读(1630) 评论(0) 推荐(0)